mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Comparator output on seared tanks and Smeltery
Unmerged 164accessory commits #932
This commit is contained in:
1 parent
e4888147db
commit
5c78471fff
4 files changed
+59
No files matched your search
@@ -323,4 +323,22 @@ public class LavaTankBlock extends BlockContainer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Comparator
|
||||
|
||||
@Override
|
||||
public boolean hasComparatorInputOverride() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getComparatorInputOverride(World world, int x, int y, int z, int comparatorSide)
|
||||
{
|
||||
return getTankLogic(world, x, y, z).comparatorStrength();
|
||||
}
|
||||
|
||||
public static LavaTankLogic getTankLogic(IBlockAccess blockAccess, int par1, int par2, int par3)
|
||||
{
|
||||
return (LavaTankLogic)blockAccess.getTileEntity(par1, par2, par3);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user