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 BigInteger
add
(BigInteger a, BigInteger b) void
readNBT
(net.minecraft.nbt.CompoundTag tag) protected BigInteger
subtract
(BigInteger a, BigInteger b) void
writeNBT
(net.minecraft.nbt.CompoundTag tag) protected BigInteger
zero()
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:
writeNBT
in classSimpleBattery<BigInteger>
-
readNBT
public void readNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
readNBT
in classSimpleBattery<BigInteger>
-
zero
- Specified by:
zero
in classSimpleBattery<BigInteger>
-
add
- Specified by:
add
in classSimpleBattery<BigInteger>
-
subtract
- Specified by:
subtract
in classSimpleBattery<BigInteger>
-