Interface FluidRenderInfo


public interface FluidRenderInfo
Exposes rendering info for a given fluid. Obtained from PlatformAccess.getFluidRenderInfo(Fluid).
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.texture.TextureAtlasSprite
    On fabric, just calls getFlowingTexture(FluidState) with the fluid's default state.
    net.minecraft.client.renderer.texture.TextureAtlasSprite
    getFlowingTexture(net.minecraft.world.level.material.FluidState state)
    Gets the sprite for the fluid's flowing texture.
    net.minecraft.client.renderer.texture.TextureAtlasSprite
    On fabric, just calls getFlowingTexture(FluidState) with the fluid's default state.
    net.minecraft.client.renderer.texture.TextureAtlasSprite
    getStillTexture(net.minecraft.world.level.material.FluidState state)
    Gets the sprite for the fluid's still texture.
    int
    On fabric, just calls getTintColor(FluidState) with the fluid's default state.
    int
    getTintColor(net.minecraft.world.level.material.FluidState state)
    Gets the tint color of the fluid for the given state.
  • Method Details

    • getStillTexture

      net.minecraft.client.renderer.texture.TextureAtlasSprite getStillTexture(FluidStack stack)
      On fabric, just calls getFlowingTexture(FluidState) with the fluid's default state. On forge, might render based on NBT data as Forge's API includes an additional method to render by fluid stack. No guarantees.
    • getStillTexture

      net.minecraft.client.renderer.texture.TextureAtlasSprite getStillTexture(net.minecraft.world.level.material.FluidState state)
      Gets the sprite for the fluid's still texture.
    • getFlowingTexture

      net.minecraft.client.renderer.texture.TextureAtlasSprite getFlowingTexture(FluidStack stack)
      On fabric, just calls getFlowingTexture(FluidState) with the fluid's default state. On forge, might render based on NBT data as Forge's API includes an additional method to render by fluid stack. No guarantees.
    • getFlowingTexture

      net.minecraft.client.renderer.texture.TextureAtlasSprite getFlowingTexture(net.minecraft.world.level.material.FluidState state)
      Gets the sprite for the fluid's flowing texture.
    • getTintColor

      int getTintColor(FluidStack stack)
      On fabric, just calls getTintColor(FluidState) with the fluid's default state. On forge, might render based on NBT data as Forge's API includes an additional method to render by fluid stack. No guarantees.
    • getTintColor

      int getTintColor(net.minecraft.world.level.material.FluidState state)
      Gets the tint color of the fluid for the given state.