Class SimpleBattery.BigBattery
java.lang.Object
design.aeonic.nifty.api.transfer.base.SimpleBattery<BigInteger>
design.aeonic.nifty.api.transfer.base.SimpleBattery.BigBattery
- All Implemented Interfaces:
Battery<BigInteger>
- Enclosing class:
- SimpleBattery<T extends Number & Comparable<T>>
-
Nested Class Summary
Nested classes/interfaces inherited from class design.aeonic.nifty.api.transfer.base.SimpleBattery
SimpleBattery.BigBattery, SimpleBattery.IntBattery, SimpleBattery.LongBattery -
Constructor Summary
ConstructorsConstructorDescriptionBigBattery(BigInteger capacity) BigBattery(BigInteger capacity, BigInteger stored) -
Method Summary
Modifier and TypeMethodDescriptionprotected BigIntegeradd(BigInteger a, BigInteger b) voidreadNBT(net.minecraft.nbt.CompoundTag tag) protected BigIntegersubtract(BigInteger a, BigInteger b) voidwriteNBT(net.minecraft.nbt.CompoundTag tag) protected BigIntegerzero()Methods inherited from class design.aeonic.nifty.api.transfer.base.SimpleBattery
extract, getCapacity, getStored, insert, min, onChange, resize, setStored
-
Constructor Details
-
BigBattery
-
BigBattery
-
-
Method Details
-
writeNBT
public void writeNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
writeNBTin classSimpleBattery<BigInteger>
-
readNBT
public void readNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
readNBTin classSimpleBattery<BigInteger>
-
zero
- Specified by:
zeroin classSimpleBattery<BigInteger>
-
add
- Specified by:
addin classSimpleBattery<BigInteger>
-
subtract
- Specified by:
subtractin classSimpleBattery<BigInteger>
-