Package com.hbm_m.recipe
Class PseudoFluidTank
java.lang.Object
com.hbm_m.recipe.PseudoFluidTank
Port of the 1.7.10 Gas Centrifuge's inner
PseudoFluidTank class: a simple
fill/capacity pair typed with a PseudoFluidType instead of a real Forge fluid.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(net.minecraft.network.FriendlyByteBuf buf) intgetFill()intvoidreadFromNBT(net.minecraft.nbt.CompoundTag nbt, String prefix) voidserialize(net.minecraft.network.FriendlyByteBuf buf) voidsetFill(int amount) voidsetTankType(PseudoFluidType newType) voidwriteToNBT(net.minecraft.nbt.CompoundTag nbt, String prefix)
-
Constructor Details
-
PseudoFluidTank
-
-
Method Details
-
getFill
public int getFill() -
getMaxFill
public int getMaxFill() -
getTankType
-
setFill
public void setFill(int amount) -
setTankType
-
writeToNBT
-
readFromNBT
-
serialize
public void serialize(net.minecraft.network.FriendlyByteBuf buf) -
deserialize
public void deserialize(net.minecraft.network.FriendlyByteBuf buf)
-