Class VanillaFluidEquivalence

java.lang.Object
com.hbm_m.api.fluids.VanillaFluidEquivalence

public final class VanillaFluidEquivalence extends Object
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 Type
    Method
    Description
    static net.minecraft.world.level.material.Fluid
    forVanillaContainerFill(net.minecraft.world.level.material.Fluid tankType)
    Fluid to put in a FluidStack when filling vanilla-style item handlers (buckets) from a tank that stores the HBM registered variant.
    static boolean
    isLava(net.minecraft.world.level.material.Fluid f)
     
    static boolean
    isWater(net.minecraft.world.level.material.Fluid f)
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a FluidStack when filling vanilla-style item handlers (buckets) from a tank that stores the HBM registered variant.