Class NormalFluidVolume

java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
alexiil.mc.lib.attributes.fluid.volume.NormalFluidVolume

@Deprecated
public class NormalFluidVolume
extends FluidVolume
Deprecated.
Because any FluidKey can map to a single Fluid, and SimpleFluidVolume has a much better name than this.
ItemStack equivalent for fluids. Instances must be constructed via FluidKeys.get(Fluid).withAmount(FluidAmount).
  • Method Details

    • getRawFluid

      @Nonnull public final net.minecraft.fluid.Fluid getRawFluid()
      Deprecated.
      Overrides:
      getRawFluid in class FluidVolume
      Returns:
      The minecraft Fluid instance that this contains, or null if this is based on something else (like Potion's).
    • getFluidKey

      public NormalFluidKey getFluidKey()
      Deprecated.
      Overrides:
      getFluidKey in class FluidVolume
      Returns:
      The FluidKey for this volume. Subclasses may override this to use a return type for their key class.