Package com.hbm_m.inventory.fluid.trait
Class FT_Coolable
java.lang.Object
com.hbm_m.inventory.fluid.trait.FluidTrait
com.hbm_m.inventory.fluid.trait.FT_Coolable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.hbm_m.inventory.fluid.trait.FluidTrait
FluidTrait.FluidReleaseType -
Field Summary
FieldsModifier and TypeFieldDescriptionintintnet.minecraft.world.level.material.Fluidprotected HashMap<FT_Coolable.CoolingType,Double> intFields inherited from class com.hbm_m.inventory.fluid.trait.FluidTrait
traitList, traitNameMap -
Constructor Summary
ConstructorsConstructorDescriptionFT_Coolable(net.minecraft.world.level.material.Fluid type, int req, int prod, int heat) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInfoHidden(List<net.minecraft.network.chat.Component> info) General names of simple traits which are displayed when holding shiftvoiddeserializeJSON(com.google.gson.JsonObject obj) doublevoidserializeJSON(com.google.gson.stream.JsonWriter writer) setEff(FT_Coolable.CoolingType type, double eff) Methods inherited from class com.hbm_m.inventory.fluid.trait.FluidTrait
addInfo, onFluidRelease, registerTrait
-
Field Details
-
efficiency
-
coolsTo
public net.minecraft.world.level.material.Fluid coolsTo -
amountReq
public int amountReq -
amountProduced
public int amountProduced -
heatEnergy
public int heatEnergy
-
-
Constructor Details
-
FT_Coolable
public FT_Coolable() -
FT_Coolable
public FT_Coolable(net.minecraft.world.level.material.Fluid type, int req, int prod, int heat)
-
-
Method Details
-
setEff
-
getEfficiency
-
addInfoHidden
Description copied from class:FluidTraitGeneral names of simple traits which are displayed when holding shift- Overrides:
addInfoHiddenin classFluidTrait
-
serializeJSON
- Overrides:
serializeJSONin classFluidTrait- Throws:
IOException
-
deserializeJSON
public void deserializeJSON(com.google.gson.JsonObject obj) - Overrides:
deserializeJSONin classFluidTrait
-