Class BoatriumFluidRenderHandler

java.lang.Object
earth.terrarium.botarium.fabric.client.BoatriumFluidRenderHandler
All Implemented Interfaces:
net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler

public class BoatriumFluidRenderHandler extends Object implements net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final FluidInformation
     
    protected net.minecraft.client.renderer.texture.TextureAtlasSprite[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getFluidColor(@Nullable net.minecraft.world.level.BlockAndTintGetter view, @Nullable net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState state)
     
    net.minecraft.client.renderer.texture.TextureAtlasSprite[]
    getFluidSprites(@Nullable net.minecraft.world.level.BlockAndTintGetter view, @Nullable net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState state)
     
    void
    reloadTextures(net.minecraft.client.renderer.texture.TextureAtlas textureAtlas)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler

    renderFluid
  • Field Details

    • information

      protected final FluidInformation information
    • sprites

      protected net.minecraft.client.renderer.texture.TextureAtlasSprite[] sprites
  • Constructor Details

    • BoatriumFluidRenderHandler

      public BoatriumFluidRenderHandler(FluidInformation information)
  • Method Details

    • getFluidSprites

      public net.minecraft.client.renderer.texture.TextureAtlasSprite[] getFluidSprites(@Nullable @Nullable net.minecraft.world.level.BlockAndTintGetter view, @Nullable @Nullable net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState state)
      Specified by:
      getFluidSprites in interface net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler
    • reloadTextures

      public void reloadTextures(net.minecraft.client.renderer.texture.TextureAtlas textureAtlas)
      Specified by:
      reloadTextures in interface net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler
    • getFluidColor

      public int getFluidColor(@Nullable @Nullable net.minecraft.world.level.BlockAndTintGetter view, @Nullable @Nullable net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState state)
      Specified by:
      getFluidColor in interface net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler