Interface ForFluidStacks<T>

All Superinterfaces:
net.minecraft.world.item.crafting.display.DisplayContentsFactory<T>
All Known Implementing Classes:
FluidStackContentsFactory

public interface ForFluidStacks<T> extends net.minecraft.world.item.crafting.display.DisplayContentsFactory<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.display.DisplayContentsFactory

    net.minecraft.world.item.crafting.display.DisplayContentsFactory.ForRemainders<T>, net.minecraft.world.item.crafting.display.DisplayContentsFactory.ForStacks<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    forStack(net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid> fluid)
    Returns display data for the given fluid holder.
    default T
    forStack(net.minecraft.world.level.material.Fluid fluid)
    Returns display data for the given fluid.
    Returns display data for the given fluid stack.
  • Method Details

    • forStack

      default T forStack(net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid> fluid)
      Returns display data for the given fluid holder.
      Parameters:
      fluid - Fluid holder to display.
      Returns:
      display data for the given fluid holder
    • forStack

      default T forStack(net.minecraft.world.level.material.Fluid fluid)
      Returns display data for the given fluid.
      Parameters:
      fluid - Fluid to display.
      Returns:
      display data for the given fluid
    • forStack

      T forStack(FluidStack fluid)
      Returns display data for the given fluid stack.
      Parameters:
      fluid - Fluid stack to display
      Returns:
      display data for the given fluid stack