Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package nc.tile.generator;
- @Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "opencomputers")
- public class TileFissionController extends TileItemGenerator implements SimpleComponent {
- @Override
- @Optional.Method(modid = "opencomputers")
- public String getComponentName() {
- return Global.MOD_SHORT_ID + "_fission_reactor";
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] isComplete(Context context, Arguments args) {
- return new Object[] {complete};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getProblem(Context context, Arguments args) {
- return new Object[] {problem};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getLengthX(Context context, Arguments args) {
- return new Object[] {getLengthX()};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getLengthY(Context context, Arguments args) {
- return new Object[] {getLengthY()};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getLengthZ(Context context, Arguments args) {
- return new Object[] {getLengthZ()};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getEnergyStored(Context context, Arguments args) {
- return new Object[] {getEnergyStored()};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getMaxEnergyStored(Context context, Arguments args) {
- return new Object[] {getMaxEnergyStored()};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getHeatLevel(Context context, Arguments args) {
- return new Object[] {heat};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getEfficiency(Context context, Arguments args) {
- return new Object[] {efficiency};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getHeatMultiplier(Context context, Arguments args) {
- return new Object[] {heatMult};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getFissionFuelTime(Context context, Arguments args) {
- return new Object[] {baseProcessTime};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getFissionFuelPower(Context context, Arguments args) {
- return new Object[] {baseProcessPower};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getFissionFuelHeat(Context context, Arguments args) {
- return new Object[] {baseProcessHeat};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getReactorProcessTime(Context context, Arguments args) {
- return new Object[] {cells == 0 ? baseProcessTime : baseProcessTime/cells};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getReactorProcessPower(Context context, Arguments args) {
- return new Object[] {processPower};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getReactorProcessHeat(Context context, Arguments args) {
- return new Object[] {heatChange};
- }
- @Callback
- @Optional.Method(modid = "opencomputers")
- public Object[] getReactorCoolingRate(Context context, Arguments args) {
- return new Object[] {cooling};
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment