mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Update TileEntityRBMKRod.java
This commit is contained in:
parent
1cf051a8b1
commit
9d23c8a057
@ -412,6 +412,15 @@ public class TileEntityRBMKRod extends TileEntityRBMKSlottedBase implements IRBM
|
|||||||
return new Object[] {"N/A"};
|
return new Object[] {"N/A"};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Callback
|
||||||
|
@Optional.Method(modid = "OpenComputers")
|
||||||
|
public Object[] getFuelType(Context context, Arguments args) {
|
||||||
|
if(slots[0] != null && slots[0].getItem() instanceof ItemRBMKRod) {
|
||||||
|
return new Object[] {slots[0].getItem()};
|
||||||
|
}
|
||||||
|
return new Object[] {"N/A"};
|
||||||
|
}
|
||||||
|
|
||||||
@Callback
|
@Callback
|
||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getXenonPoison(Context context, Arguments args) {
|
public Object[] getXenonPoison(Context context, Arguments args) {
|
||||||
@ -444,14 +453,17 @@ public class TileEntityRBMKRod extends TileEntityRBMKSlottedBase implements IRBM
|
|||||||
public Object[] getInfo(Context context, Arguments args) {
|
public Object[] getInfo(Context context, Arguments args) {
|
||||||
Object OC_enrich_buf;
|
Object OC_enrich_buf;
|
||||||
Object OC_poison_buf;
|
Object OC_poison_buf;
|
||||||
|
Object OC_fuelType;
|
||||||
if(slots[0] != null && slots[0].getItem() instanceof ItemRBMKRod) {
|
if(slots[0] != null && slots[0].getItem() instanceof ItemRBMKRod) {
|
||||||
OC_enrich_buf = ItemRBMKRod.getEnrichment(slots[0]);
|
OC_enrich_buf = ItemRBMKRod.getEnrichment(slots[0]);
|
||||||
OC_poison_buf = ItemRBMKRod.getPoison(slots[0]);
|
OC_poison_buf = ItemRBMKRod.getPoison(slots[0]);
|
||||||
|
OC_fuelType = slots[0].getItem();
|
||||||
} else {
|
} else {
|
||||||
OC_enrich_buf = "N/A";
|
OC_enrich_buf = "N/A";
|
||||||
OC_poison_buf = "N/A";
|
OC_poison_buf = "N/A";
|
||||||
|
OC_fuelType = "N/A";
|
||||||
}
|
}
|
||||||
return new Object[] {heat, fluxSlow, fluxFast, OC_enrich_buf, OC_poison_buf};
|
return new Object[] {heat, fluxSlow, fluxFast, OC_enrich_buf, OC_poison_buf, OC_fuelType};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user