use of pneumaticCraft.common.tileentity.TileEntityElevatorBase in project PneumaticCraft by MineMaarten.
the class BlockElevatorFrame method getElevatorBlockHeight.
private float getElevatorBlockHeight(World world, int x, int y, int z) {
TileEntityElevatorBase te = getElevatorTE(world, x, y, z);
if (te == null)
return 0F;
float blockHeight = te.extension - (y - te.yCoord) + 1;
// + blockHeight);
if (blockHeight < 0F)
return 0F;
if (blockHeight > 1F)
return 1F;
return blockHeight;
}
Aggregations