Class LiquidRenderUtils
java.lang.Object
net.frozenblock.lib.liquid.render.api.LiquidRenderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddWeightedHeight(float[] weights, float height) static floatgetHeight(net.minecraft.world.level.BlockAndTintGetter world, net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.BlockPos blockState) static floatgetHeight(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 intgetLightColor(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos) static booleanshouldRenderFace(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 voidtesselateWithSingleTexture(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 voidvertex(com.mojang.blaze3d.vertex.VertexConsumer consumer, double x, double y, double z, float red, float green, float blue, float u, float v, int packedLight)
-
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)
-