public interface FluidRenderHandler
Modifier and Type | Method and Description |
---|---|
default int |
getFluidColor(net.minecraft.world.BlockRenderView view,
net.minecraft.util.math.BlockPos pos,
net.minecraft.fluid.FluidState state)
Get the tint color for a fluid being rendered at a given position.
|
net.minecraft.client.texture.Sprite[] |
getFluidSprites(net.minecraft.world.BlockRenderView view,
net.minecraft.util.math.BlockPos pos,
net.minecraft.fluid.FluidState state)
Get the sprites for a fluid being rendered at a given position.
|
net.minecraft.client.texture.Sprite[] getFluidSprites(net.minecraft.world.BlockRenderView view, net.minecraft.util.math.BlockPos pos, net.minecraft.fluid.FluidState state)
The "fabric-textures" module contains sprite rendering facilities, which may come in handy here.
view
- The world view pertaining to the fluid. May be null!pos
- The position of the fluid in the world. May be null!state
- The current state of the fluid.default int getFluidColor(net.minecraft.world.BlockRenderView view, net.minecraft.util.math.BlockPos pos, net.minecraft.fluid.FluidState state)
Note: As of right now, our hook cannot handle setting a custom alpha tint here - as such, it must be contained in the texture itself!
view
- The world view pertaining to the fluid. May be null!pos
- The position of the fluid in the world. May be null!state
- The current state of the fluid.