disabled end point renders for belts

This commit is contained in:
Robert 2013-12-21 00:33:00 -05:00
parent 38b2933189
commit f47e584fb3
2 changed files with 2 additions and 44 deletions

View file

@ -24,7 +24,6 @@ public class RenderConveyorBelt extends TileEntitySpecialRenderer
private void renderAModelAt(TileEntityConveyorBelt tileEntity, double x, double y, double z, float f)
{
boolean mid = tileEntity.getIsMiddleBelt();
SlantType slantType = tileEntity.getSlant();
int face = tileEntity.getDirection().ordinal();
@ -101,7 +100,7 @@ public class RenderConveyorBelt extends TileEntitySpecialRenderer
bindTexture(name);
GL11.glRotatef(180, 0f, 1f, 0f);
GL11.glTranslatef(0f, -0.68f, 0f);
MODEL.render(0.0625f, (float) Math.toRadians(tileEntity.wheelRotation), tileEntity.getIsLastBelt(), tileEntity.getIsFirstBelt(), false, false);
MODEL.render(0.0625f, (float) Math.toRadians(tileEntity.wheelRotation), false, false, false, false);
}
}
else
@ -123,7 +122,7 @@ public class RenderConveyorBelt extends TileEntitySpecialRenderer
}
ResourceLocation name = new ResourceLocation(AssemblyLine.DOMAIN, DarkCore.MODEL_DIRECTORY + "belt/frame" + frame + ".png");
bindTexture(name);
MODEL.render(0.0625F, (float) Math.toRadians(tileEntity.wheelRotation), tileEntity.getIsLastBelt(), tileEntity.getIsFirstBelt(), false, true);
MODEL.render(0.0625F, (float) Math.toRadians(tileEntity.wheelRotation), false, false, false, true);
}

View file

@ -153,46 +153,6 @@ public class TileEntityConveyorBelt extends TileEntityAssembly implements IBelt,
this.worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
/** Is this belt in the front of a conveyor line? Used for rendering. */
public boolean getIsFirstBelt()
{
Vector3 vec = new Vector3(this);
TileEntity fBelt = vec.clone().modifyPositionFromSide(this.getDirection()).getTileEntity(this.worldObj);
TileEntity bBelt = vec.clone().modifyPositionFromSide(this.getDirection().getOpposite()).getTileEntity(this.worldObj);
if (fBelt instanceof TileEntityConveyorBelt && !(bBelt instanceof TileEntityConveyorBelt))
{
return ((TileEntityConveyorBelt) fBelt).getDirection() == this.getDirection();
}
return false;
}
/** Is this belt in the middile of two belts? Used for rendering. */
public boolean getIsMiddleBelt()
{
Vector3 vec = new Vector3(this);
TileEntity fBelt = vec.clone().modifyPositionFromSide(this.getDirection()).getTileEntity(this.worldObj);
TileEntity bBelt = vec.clone().modifyPositionFromSide(this.getDirection().getOpposite()).getTileEntity(this.worldObj);
if (fBelt instanceof TileEntityConveyorBelt && bBelt instanceof TileEntityConveyorBelt)
{
return ((TileEntityConveyorBelt) fBelt).getDirection() == this.getDirection() && ((TileEntityConveyorBelt) bBelt).getDirection() == this.getDirection();
}
return false;
}
/** Is this belt in the back of a conveyor line? Used for rendering. */
public boolean getIsLastBelt()
{
Vector3 vec = new Vector3(this);
TileEntity fBelt = vec.clone().modifyPositionFromSide(this.getDirection()).getTileEntity(this.worldObj);
TileEntity bBelt = vec.clone().modifyPositionFromSide(this.getDirection().getOpposite()).getTileEntity(this.worldObj);
if (bBelt instanceof TileEntityConveyorBelt && !(fBelt instanceof TileEntityConveyorBelt))
{
return ((TileEntityConveyorBelt) bBelt).getDirection() == this.getDirection().getOpposite();
}
return false;
}
@Override
public void setDirection(ForgeDirection facingDirection)
{
@ -239,7 +199,6 @@ public class TileEntityConveyorBelt extends TileEntityAssembly implements IBelt,
{
this.IgnoreList.add(entity);
}
}
@Override