Guest User

Untitled

a guest
Aug 14th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.24 KB | None | 0 0
  1. package nc.tile.generator;
  2.  
  3. @Optional.Interface(iface = "li.cil.oc.api.network.SimpleComponent", modid = "opencomputers")
  4. public class TileFissionController extends TileItemGenerator implements SimpleComponent {
  5.  
  6. @Override
  7.     @Optional.Method(modid = "opencomputers")
  8.     public String getComponentName() {
  9.         return Global.MOD_SHORT_ID + "_fission_reactor";
  10.     }
  11.    
  12.     @Callback
  13.     @Optional.Method(modid = "opencomputers")
  14.     public Object[] isComplete(Context context, Arguments args) {
  15.         return new Object[] {complete};
  16.     }
  17.    
  18.     @Callback
  19.     @Optional.Method(modid = "opencomputers")
  20.     public Object[] getProblem(Context context, Arguments args) {
  21.         return new Object[] {problem};
  22.     }
  23.    
  24.     @Callback
  25.     @Optional.Method(modid = "opencomputers")
  26.     public Object[] getLengthX(Context context, Arguments args) {
  27.         return new Object[] {getLengthX()};
  28.     }
  29.    
  30.     @Callback
  31.     @Optional.Method(modid = "opencomputers")
  32.     public Object[] getLengthY(Context context, Arguments args) {
  33.         return new Object[] {getLengthY()};
  34.     }
  35.    
  36.     @Callback
  37.     @Optional.Method(modid = "opencomputers")
  38.     public Object[] getLengthZ(Context context, Arguments args) {
  39.         return new Object[] {getLengthZ()};
  40.     }
  41.    
  42.     @Callback
  43.     @Optional.Method(modid = "opencomputers")
  44.     public Object[] getEnergyStored(Context context, Arguments args) {
  45.         return new Object[] {getEnergyStored()};
  46.     }
  47.    
  48.     @Callback
  49.     @Optional.Method(modid = "opencomputers")
  50.     public Object[] getMaxEnergyStored(Context context, Arguments args) {
  51.         return new Object[] {getMaxEnergyStored()};
  52.     }
  53.    
  54.     @Callback
  55.     @Optional.Method(modid = "opencomputers")
  56.     public Object[] getHeatLevel(Context context, Arguments args) {
  57.         return new Object[] {heat};
  58.     }
  59.    
  60.     @Callback
  61.     @Optional.Method(modid = "opencomputers")
  62.     public Object[] getEfficiency(Context context, Arguments args) {
  63.         return new Object[] {efficiency};
  64.     }
  65.    
  66.     @Callback
  67.     @Optional.Method(modid = "opencomputers")
  68.     public Object[] getHeatMultiplier(Context context, Arguments args) {
  69.         return new Object[] {heatMult};
  70.     }
  71.    
  72.     @Callback
  73.     @Optional.Method(modid = "opencomputers")
  74.     public Object[] getFissionFuelTime(Context context, Arguments args) {
  75.         return new Object[] {baseProcessTime};
  76.     }
  77.    
  78.     @Callback
  79.     @Optional.Method(modid = "opencomputers")
  80.     public Object[] getFissionFuelPower(Context context, Arguments args) {
  81.         return new Object[] {baseProcessPower};
  82.     }
  83.    
  84.     @Callback
  85.     @Optional.Method(modid = "opencomputers")
  86.     public Object[] getFissionFuelHeat(Context context, Arguments args) {
  87.         return new Object[] {baseProcessHeat};
  88.     }
  89.    
  90.     @Callback
  91.     @Optional.Method(modid = "opencomputers")
  92.     public Object[] getReactorProcessTime(Context context, Arguments args) {
  93.         return new Object[] {cells == 0 ? baseProcessTime : baseProcessTime/cells};
  94.     }
  95.    
  96.     @Callback
  97.     @Optional.Method(modid = "opencomputers")
  98.     public Object[] getReactorProcessPower(Context context, Arguments args) {
  99.         return new Object[] {processPower};
  100.     }
  101.    
  102.     @Callback
  103.     @Optional.Method(modid = "opencomputers")
  104.     public Object[] getReactorProcessHeat(Context context, Arguments args) {
  105.         return new Object[] {heatChange};
  106.     }
  107.    
  108.     @Callback
  109.     @Optional.Method(modid = "opencomputers")
  110.     public Object[] getReactorCoolingRate(Context context, Arguments args) {
  111.         return new Object[] {cooling};
  112.     }
  113. }
Advertisement
Add Comment
Please, Sign In to add comment