Add comparator support to the GasTank (#1829).

This commit is contained in:
jmongeon committed 2014-09-26 20:35:43 -04:00
1 parent f240f907c5
commit 5011ea1c70
2 files changed
+36

No files matched your search

@@ -219,6 +219,19 @@ public class BlockGasTank extends BlockContainer
return itemStack;
}
@Override
public boolean hasComparatorInputOverride()
{
return true;
}
@Override
public int getComparatorInputOverride(World world, int x, int y, int z, int par5)
{
TileEntityGasTank tileEntity = (TileEntityGasTank)world.getTileEntity(x, y, z);
return tileEntity.getRedstoneLevel();
}
@Override
public ForgeDirection[] getValidRotations(World world, int x, int y, int z)
{