Interface FluidRenderHandlerRegistry


public interface FluidRenderHandlerRegistry
Registry for FluidRenderHandler instances.

Notably, this supports querying, overriding and wrapping vanilla fluid rendering.

  • Field Details

  • Method Details

    • get

      FluidRenderHandler get(net.minecraft.fluid.Fluid fluid)
      Get a FluidRenderHandler for a given Fluid. Supports vanilla and Fabric fluids.
      Parameters:
      fluid - The Fluid.
      Returns:
      The FluidRenderHandler.
    • register

      void register(net.minecraft.fluid.Fluid fluid, FluidRenderHandler renderer)
      Register a FluidRenderHandler for a given Fluid.
      Parameters:
      fluid - The Fluid.
      renderer - The FluidRenderHandler.