Interface FluidRenderHandlerRegistry
public interface FluidRenderHandlerRegistry
Registry for
FluidRenderHandler
instances.
Notably, this supports querying, overriding and wrapping vanilla fluid rendering.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionget(net.minecraft.fluid.Fluid fluid)
Get aFluidRenderHandler
for a given Fluid.void
register(net.minecraft.fluid.Fluid fluid, FluidRenderHandler renderer)
Register aFluidRenderHandler
for a given Fluid.
-
Field Details
-
INSTANCE
-
-
Method Details
-
get
Get aFluidRenderHandler
for a given Fluid. Supports vanilla and Fabric fluids.- Parameters:
fluid
- The Fluid.- Returns:
- The FluidRenderHandler.
-
register
Register aFluidRenderHandler
for a given Fluid.- Parameters:
fluid
- The Fluid.renderer
- The FluidRenderHandler.
-