public interface FluidRenderHandlerRegistry
FluidRenderHandler
instances.
Notably, this supports querying, overriding and wrapping vanilla fluid rendering.
Modifier and Type | Field and Description |
---|---|
static FluidRenderHandlerRegistry |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
FluidRenderHandler |
get(net.minecraft.fluid.Fluid fluid)
Get a
FluidRenderHandler for a given Fluid. |
void |
register(net.minecraft.fluid.Fluid fluid,
FluidRenderHandler renderer)
Register a
FluidRenderHandler for a given Fluid. |
static final FluidRenderHandlerRegistry INSTANCE
FluidRenderHandler get(net.minecraft.fluid.Fluid fluid)
FluidRenderHandler
for a given Fluid.
Supports vanilla and Fabric fluids.fluid
- The Fluid.void register(net.minecraft.fluid.Fluid fluid, FluidRenderHandler renderer)
FluidRenderHandler
for a given Fluid.fluid
- The Fluid.renderer
- The FluidRenderHandler.