Class FluidData.PlatformDependant<T>

java.lang.Object
mcp.mobius.waila.api.data.FluidData
mcp.mobius.waila.api.data.FluidData.PlatformDependant<T>
All Implemented Interfaces:
IData
Enclosing class:
FluidData

@NonExtendable public abstract static class FluidData.PlatformDependant<T> extends FluidData
  • Constructor Details

    • PlatformDependant

      public PlatformDependant()
  • Method Details

    • add

      public FluidData.PlatformDependant<T> add(T stack, double capacity)
      Adds a fluid entry.
      Parameters:
      stack - the platform-specific object
      capacity - the maximum capacity of this slot, in the platform's unit
    • add

      public FluidData.PlatformDependant<T> add(T variant, double stored, double capacity)
      Adds a fluid entry.
      Parameters:
      variant - the platform-specific object
      stored - the stored amount of the fluid, in the platform's unit
      capacity - the maximum capacity of this slot, in the platform's unit
    • add

      public FluidData.PlatformDependant<T> add(Fluid fluid, net.minecraft.core.component.DataComponentPatch data, double stored, double capacity)
      Description copied from class: FluidData
      Adds a fluid entry.
      Overrides:
      add in class FluidData
      Parameters:
      fluid - the fluid instance, will be normalized as the source fluid if it is a FlowingFluid
      data - the fluid's NBT data, will NOT be modified so it safe to not copy it
      stored - the stored amount of the fluid, in the specified unit
      capacity - the maximum capacity of this slot, in the specified unit