コード例 #1
0
 @Callback(doc = "function():number -- Get the temperature of the boiler")
 public Object[] getTemperature(final Context context, final Arguments args) {
   return new Object[] {Reflection.tryInvoke(tileEntity, "getTemperature")};
 }
コード例 #2
0
 @Callback(doc = "function():boolean -- Get whether the boiler is active or not")
 public Object[] isBurning(final Context context, final Arguments args) {
   return new Object[] {Reflection.tryInvoke(tileEntity, "isBurning")};
 }