Added hooks for subtiles to control redstone behavior and light.

This commit is contained in:
SoundLogic committed 2015-05-18 07:52:19 -05:00
1 parent 7a144f3fcd
commit 55977e5bd9
10 files changed
+233 -1

No files matched your search

@@ -192,4 +192,27 @@ public class SubTileEntity {
public void renderHUD(Minecraft mc, ScaledResolution res) {
// NO-OP
}
/**
* Gets the light value for this SubTileEntity, this is a int (-1 to default to the flower)
*/
public int getLightValue() {
return -1;
}
/**
* Gets the comparator input value for this SubTileEntity
*/
public int getComparatorInputOverride(int side) {
return 0;
}
/**
* Gets the redstone power level for this SubTileEntity
*/
public int getPowerLevel(int side) {
return 0;
}
}