shit shit shit shit i forgot something

This commit is contained in:
BallOfEnergy 2024-08-11 22:50:31 -05:00
parent c89f1b411f
commit d8f4b32c05

View File

@ -665,41 +665,27 @@ public class TileEntityMachineTurbineGas extends TileEntityMachineBase implement
public Object[] invoke(String method, Context context, Arguments args) throws Exception { public Object[] invoke(String method, Context context, Arguments args) throws Exception {
switch(method) { switch(method) {
case ("getFluid"): case ("getFluid"):
return new Object[] { return getFluid(context, args);
tanks[0].getFill(), tanks[0].getMaxFill(),
tanks[1].getFill(), tanks[1].getMaxFill(),
tanks[2].getFill(), tanks[2].getMaxFill(),
tanks[3].getFill(), tanks[3].getMaxFill()
};
case ("getType"): case ("getType"):
return new Object[] {tanks[0].getTankType().getName()}; return getType(context, args);
case ("getPower"): case ("getPower"):
return new Object[] {power}; return getPower(context, args);
case ("getThrottle"): case ("getThrottle"):
return new Object[] {throttle}; return getThrottle(context, args);
case ("getState"): case ("getState"):
return new Object[] {state}; return getState(context, args);
case ("getAuto"): case ("getAuto"):
return new Object[] {autoMode}; return getAuto(context, args);
case ("setThrottle"): case ("setThrottle"):
throttle = args.checkInteger(0); return setThrottle(context, args);
return new Object[] {};
case ("setAuto"): case ("setAuto"):
autoMode = args.checkBoolean(0); return setAuto(context, args);
return new Object[] {};
case ("start"): case ("start"):
stopIfNotReady(); return start(context, args);
startup();
return new Object[] {};
case ("stop"): case ("stop"):
shutdown(); return stop(context, args);
return new Object[] {};
case ("getInfo"): case ("getInfo"):
return new Object[] {throttle, state, return getInfo(context, args);
tanks[0].getFill(), tanks[0].getMaxFill(),
tanks[1].getFill(), tanks[1].getMaxFill(),
tanks[2].getFill(), tanks[2].getMaxFill(),
tanks[3].getFill(), tanks[3].getMaxFill()};
} }
throw new NoSuchMethodException(); throw new NoSuchMethodException();
} }