mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
ough2
ough2
This commit is contained in:
parent
798382bf42
commit
3a0523462c
@ -319,6 +319,7 @@ public class TileEntityBatterySocket extends TileEntityBatteryBase implements IR
|
|||||||
public String[] getFunctionInfo() {
|
public String[] getFunctionInfo() {
|
||||||
return new String[] {
|
return new String[] {
|
||||||
PREFIX_VALUE + "fill",
|
PREFIX_VALUE + "fill",
|
||||||
|
PREFIX_VALUE + "maxfill",
|
||||||
PREFIX_VALUE + "fillpercent",
|
PREFIX_VALUE + "fillpercent",
|
||||||
PREFIX_VALUE + "delta",
|
PREFIX_VALUE + "delta",
|
||||||
PREFIX_FUNCTION + "setmode" + NAME_SEPARATOR + "mode (0-3)",
|
PREFIX_FUNCTION + "setmode" + NAME_SEPARATOR + "mode (0-3)",
|
||||||
@ -332,6 +333,7 @@ public class TileEntityBatterySocket extends TileEntityBatteryBase implements IR
|
|||||||
@Override
|
@Override
|
||||||
public String provideRORValue(String name) {
|
public String provideRORValue(String name) {
|
||||||
if((PREFIX_VALUE + "fill").equals(name)) return "" + this.getPower();
|
if((PREFIX_VALUE + "fill").equals(name)) return "" + this.getPower();
|
||||||
|
if((PREFIX_VALUE + "maxfill").equals(name)) return "" + this.getMaxPower();
|
||||||
if((PREFIX_VALUE + "fillpercent").equals(name)) return "" + this.getPower() * 100 / (Math.max(this.getMaxPower(), 1));
|
if((PREFIX_VALUE + "fillpercent").equals(name)) return "" + this.getPower() * 100 / (Math.max(this.getMaxPower(), 1));
|
||||||
if((PREFIX_VALUE + "delta").equals(name)) return "" + delta;
|
if((PREFIX_VALUE + "delta").equals(name)) return "" + delta;
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user