FluidRenderHandler

public interface FluidRenderHandler

Interface for handling the rendering of a FluidState.

Functions

getFluidColor
Link copied to clipboard
int getFluidColor(@Nullable() BlockRenderView view, @Nullable() BlockPos pos, FluidState state)
Get the tint color for a fluid being rendered at a given position.
getFluidSprites
Link copied to clipboard
abstract Array<SpritegetFluidSprites(@Nullable() BlockRenderView view, @Nullable() BlockPos pos, FluidState state)
Get the sprites for a fluid being rendered at a given position.For optimal performance, the sprites should be loaded as part of aresource reload and *not* looked up every time the method is called!

Sources

jvm source
Link copied to clipboard