mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Change TESRs to the new generic system.
Some of these will presumably end up in the blockstate model system later.
This commit is contained in:
1 parent
9b8d9d92d6
commit
70f440446f
30 files changed
+74
-219
No files matched your search
@@ -13,17 +13,12 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class RenderLaser extends TileEntitySpecialRenderer
|
||||
public class RenderLaser extends TileEntitySpecialRenderer<TileEntityLaser>
|
||||
{
|
||||
private ModelLaser model = new ModelLaser();
|
||||
|
||||
@Override
|
||||
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float partialTick)
|
||||
{
|
||||
renderAModelAt((TileEntityLaser)tileEntity, x, y, z, partialTick);
|
||||
}
|
||||
|
||||
private void renderAModelAt(TileEntityLaser tileEntity, double x, double y, double z, float partialTick)
|
||||
public void renderTileEntityAt(TileEntityLaser tileEntity, double x, double y, double z, float partialTick, int destroyStage)
|
||||
{
|
||||
GL11.glPushMatrix();
|
||||
GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F);
|
||||
|
||||
Reference in new issue
Block a user