Class LiquidRenderUtils

java.lang.Object
net.frozenblock.lib.liquid.render.api.LiquidRenderUtils

public class LiquidRenderUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addWeightedHeight(float[] weights, float height)
     
    static float
    getHeight(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.BlockPos blockState)
     
    static float
    getHeight(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.material.FluidState state)
     
    static int
    getLightColor(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos)
     
    static boolean
    shouldRenderFace(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState fluidState, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.core.Direction side, net.minecraft.world.level.material.FluidState neighborFluid, net.minecraft.world.level.block.state.BlockState neighborState)
     
    static void
    tesselateWithSingleTexture(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.material.FluidState fluidState, net.minecraft.client.renderer.texture.TextureAtlasSprite textureAtlasSprite)
     
    static void
    vertex(com.mojang.blaze3d.vertex.VertexConsumer consumer, double x, double y, double z, float red, float green, float blue, float u, float v, int packedLight)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LiquidRenderUtils

      public LiquidRenderUtils()
  • Method Details

    • tesselateWithSingleTexture

      public static void tesselateWithSingleTexture(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.material.FluidState fluidState, net.minecraft.client.renderer.texture.TextureAtlasSprite textureAtlasSprite)
    • addWeightedHeight

      public static void addWeightedHeight(float[] weights, float height)
    • getHeight

      public static float getHeight(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.BlockPos blockState)
    • getHeight

      public static float getHeight(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.material.FluidState state)
    • vertex

      public static void vertex(com.mojang.blaze3d.vertex.VertexConsumer consumer, double x, double y, double z, float red, float green, float blue, float u, float v, int packedLight)
    • getLightColor

      public static int getLightColor(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos)
    • shouldRenderFace

      public static boolean shouldRenderFace(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState fluidState, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.core.Direction side, net.minecraft.world.level.material.FluidState neighborFluid, net.minecraft.world.level.block.state.BlockState neighborState)