mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
h
This commit is contained in:
parent
f833fd512d
commit
f19e42cf93
@ -8,6 +8,12 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
import cpw.mods.fml.common.Optional;
|
||||
import li.cil.oc.api.machine.Arguments;
|
||||
import li.cil.oc.api.machine.Callback;
|
||||
import li.cil.oc.api.machine.Context;
|
||||
import li.cil.oc.api.network.SimpleComponent;
|
||||
|
||||
public class TileEntityRBMKControlManual extends TileEntityRBMKControl implements IControlReceiver {
|
||||
|
||||
public RBMKColor color;
|
||||
@ -121,4 +127,10 @@ public class TileEntityRBMKControlManual extends TileEntityRBMKControl implement
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
@Callback
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Object[] getColor(Context context, Arguments args) {
|
||||
return new Object[] {this.color};
|
||||
}
|
||||
}
|
||||
|
||||
@ -57,13 +57,4 @@ public class TileEntityRBMKRodReaSim extends TileEntityRBMKRod {
|
||||
public ColumnType getConsoleType() {
|
||||
return ColumnType.FUEL_SIM;
|
||||
}
|
||||
|
||||
// do some opencomputer stuff
|
||||
@Override
|
||||
public String getComponentName() {
|
||||
if (isModerated() == true) {
|
||||
return "rbmk_moderated_fuel_rod_reasim";
|
||||
}
|
||||
return "rbmk_fuel_rod_reasim";
|
||||
}
|
||||
}
|
||||
|
||||
@ -131,10 +131,4 @@ public class TileEntityMachineFENSU extends TileEntityMachineBattery {
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
// override the name because when connecting the machine to opencomputers it's gonna say "ntm_energy_storage"
|
||||
@Override
|
||||
public String getComponentName() {
|
||||
return "ntm_fensu";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user