mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
Shouldn't have removed the old methods as that may break other people's OC scripts
This commit is contained in:
parent
8837cb51f4
commit
48dd2a1e64
@ -451,6 +451,24 @@ public class TileEntityCraneConsole extends TileEntityLoadedBase implements Simp
|
||||
return new Object[] {map};
|
||||
}
|
||||
|
||||
@Callback(direct = true)
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Object[] getDepletion(Context context, Arguments args) {
|
||||
if(loadedItem != null && loadedItem.getItem() instanceof ItemRBMKRod) {
|
||||
return new Object[] {ItemRBMKRod.getEnrichment(loadedItem)};
|
||||
}
|
||||
return new Object[] {"N/A"};
|
||||
}
|
||||
|
||||
@Callback(direct = true)
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Object[] getXenonPoison(Context context, Arguments args) {
|
||||
if(loadedItem != null && loadedItem.getItem() instanceof ItemRBMKRod) {
|
||||
return new Object[] {ItemRBMKRod.getPoison(loadedItem)};
|
||||
}
|
||||
return new Object[] {"N/A"};
|
||||
}
|
||||
|
||||
@Callback(direct = true)
|
||||
@Optional.Method(modid = "OpenComputers") //if this doesnt work im going to die
|
||||
public Object[] getCranePos(Context context, Arguments args) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user