Class SolarBank
java.lang.Object
nokunami.floral_warfare.common.capability.solarPower.SolarBank
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSolarBank(int i) static voidaddSolarBank(net.minecraft.world.entity.LivingEntity entity, int i) booleanvoidintintintintintbooleanhasSun()static SolarBankinstance(net.minecraft.world.entity.Entity entity) booleanbooleanlessOrEqual(int i) booleanlessThan(int i) voidload(net.minecraft.nbt.CompoundTag tag) static voidloadFromPacket(net.minecraft.world.entity.Entity entity, net.minecraft.nbt.CompoundTag tag) booleanmoreOrEqual(int i) booleanmoreThan(int i) voidsave(net.minecraft.nbt.CompoundTag tag) static voidsaveToPacket(net.minecraft.world.entity.Entity entity, net.minecraft.nbt.CompoundTag tag, boolean isTamed, boolean isBaby) voidsetAccumulateTick(int i) voidsetRequestAmount(int i) voidsetRequestForSun(boolean state) voidsetSolarBank(int i) static voidsetSolarBank(net.minecraft.world.entity.LivingEntity entity, int i) booleanvoidtickAccumulation(int i)
-
Constructor Details
-
SolarBank
public SolarBank(net.minecraft.world.entity.Entity entity)
-
-
Method Details
-
getSolarBank
public int getSolarBank() -
setSolarBank
public void setSolarBank(int i) -
addSolarBank
public void addSolarBank(int i) -
getMaxSolarBank
public int getMaxSolarBank() -
capReached
public boolean capReached() -
moreThan
public boolean moreThan(int i) -
lessThan
public boolean lessThan(int i) -
hasSun
public boolean hasSun() -
moreOrEqual
public boolean moreOrEqual(int i) -
lessOrEqual
public boolean lessOrEqual(int i) -
shouldAccumulate
public boolean shouldAccumulate() -
getAccumulateTick
public int getAccumulateTick() -
setAccumulateTick
public void setAccumulateTick(int i) -
tickAccumulation
public void tickAccumulation(int i) -
getAccumulationTime
public int getAccumulationTime() -
isRequestingSun
public boolean isRequestingSun() -
setRequestForSun
public void setRequestForSun(boolean state) -
getRequestAmount
public int getRequestAmount() -
setRequestAmount
public void setRequestAmount(int i) -
copyFrom
-
instance
-
save
public void save(net.minecraft.nbt.CompoundTag tag) -
load
public void load(net.minecraft.nbt.CompoundTag tag) -
saveToPacket
public static void saveToPacket(net.minecraft.world.entity.Entity entity, net.minecraft.nbt.CompoundTag tag, boolean isTamed, boolean isBaby) -
loadFromPacket
public static void loadFromPacket(net.minecraft.world.entity.Entity entity, net.minecraft.nbt.CompoundTag tag) -
setSolarBank
public static void setSolarBank(net.minecraft.world.entity.LivingEntity entity, int i) -
addSolarBank
public static void addSolarBank(net.minecraft.world.entity.LivingEntity entity, int i)
-