Class NormalFluidVolume

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

@Deprecated(since="0.6.0", forRemoval=true) public class NormalFluidVolume extends FluidVolume
Deprecated, for removal: This API element is subject to removal in a future version.
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, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      Overrides:
      getFluidKey in class FluidVolume
      Returns:
      The FluidKey for this volume. Subclasses may override this to use a return type for their key class.