Package com.hbm_m.api.fluids
Class VanillaFluidEquivalence
java.lang.Object
com.hbm_m.api.fluids.VanillaFluidEquivalence
HBM registers its own water/lava types; vanilla buckets and many pipes use
Fluids.WATER / Fluids.LAVA.
Treats those pairs as the same substance for tank I/O and load/unload slots.-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.material.FluidforVanillaContainerFill(net.minecraft.world.level.material.Fluid tankType) Fluid to put in aFluidStackwhen filling vanilla-style item handlers (buckets) from a tank that stores the HBM registered variant.static booleanisLava(net.minecraft.world.level.material.Fluid f) static booleanisWater(net.minecraft.world.level.material.Fluid f) static booleansameSubstance(net.minecraft.world.level.material.Fluid a, net.minecraft.world.level.material.Fluid b) Same fluid registry entry, or both are the water (or both lava) family.
-
Method Details
-
isWater
public static boolean isWater(net.minecraft.world.level.material.Fluid f) -
isLava
public static boolean isLava(net.minecraft.world.level.material.Fluid f) -
sameSubstance
public static boolean sameSubstance(net.minecraft.world.level.material.Fluid a, net.minecraft.world.level.material.Fluid b) Same fluid registry entry, or both are the water (or both lava) family. -
forVanillaContainerFill
public static net.minecraft.world.level.material.Fluid forVanillaContainerFill(net.minecraft.world.level.material.Fluid tankType) Fluid to put in aFluidStackwhen filling vanilla-style item handlers (buckets) from a tank that stores the HBM registered variant.
-