Fixed #434 - Manipulator rendering
This commit is contained in:
parent
1f44fab980
commit
558e5d4ae3
2 changed files with 25 additions and 17 deletions
|
@ -22,23 +22,23 @@ public class RenderManipulator extends RenderImprintable
|
||||||
{
|
{
|
||||||
TileManipulator tile = (TileManipulator) tileEntity;
|
TileManipulator tile = (TileManipulator) tileEntity;
|
||||||
|
|
||||||
|
GL11.glPushMatrix();
|
||||||
|
GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
|
||||||
|
GL11.glRotatef(180f, 0f, 0f, 1f);
|
||||||
|
|
||||||
|
if (tile.isOutput())
|
||||||
|
{
|
||||||
|
bindTexture(TEXTURE_INPUT);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bindTexture(TEXTURE_OUTPUT);
|
||||||
|
}
|
||||||
|
|
||||||
if (tile.worldObj != null)
|
if (tile.worldObj != null)
|
||||||
{
|
{
|
||||||
int face = tile.getDirection().ordinal();
|
int face = tile.getDirection().ordinal();
|
||||||
|
|
||||||
GL11.glPushMatrix();
|
|
||||||
GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
|
|
||||||
GL11.glRotatef(180f, 0f, 0f, 1f);
|
|
||||||
|
|
||||||
if (tile.isOutput())
|
|
||||||
{
|
|
||||||
bindTexture(TEXTURE_INPUT);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
bindTexture(TEXTURE_OUTPUT);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (face == 2)
|
if (face == 2)
|
||||||
{
|
{
|
||||||
GL11.glRotatef(0f, 0f, 1f, 0f);
|
GL11.glRotatef(0f, 0f, 1f, 0f);
|
||||||
|
@ -55,11 +55,12 @@ public class RenderManipulator extends RenderImprintable
|
||||||
{
|
{
|
||||||
GL11.glRotatef(90f, 0f, 1f, 0f);
|
GL11.glRotatef(90f, 0f, 1f, 0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
MODEL.render(0.0625F, true, 0);
|
|
||||||
|
|
||||||
GL11.glPopMatrix();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MODEL.render(0.0625F, true, 0);
|
||||||
|
|
||||||
|
GL11.glPopMatrix();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -31,6 +31,13 @@ public class TileManipulator extends TileFilterable implements IRotatable, IMani
|
||||||
/** The class that interacts with inventories for this machine */
|
/** The class that interacts with inventories for this machine */
|
||||||
private InternalInventoryHandler invExtractionHelper;
|
private InternalInventoryHandler invExtractionHelper;
|
||||||
|
|
||||||
|
public TileManipulator()
|
||||||
|
{
|
||||||
|
isOpaqueCube = false;
|
||||||
|
normalRender = false;
|
||||||
|
customItemRender = true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateEntity()
|
public void updateEntity()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue