Class BasicFluidRenderer

java.lang.Object
net.createmod.catnip.utility.BasicFluidRenderer

public class BasicFluidRenderer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.mojang.blaze3d.vertex.VertexConsumer
    getFluidBuilder(net.minecraft.client.renderer.MultiBufferSource buffer)
     
    protected static void
    putVertex(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, float x, float y, float z, int color, float u, float v, net.minecraft.core.Direction face, int light)
     
    static void
    renderFluidBox(net.minecraft.world.level.material.Fluid fluid, long amount, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, int light, boolean renderBottom)
     
    static void
    renderFluidBox(net.minecraft.world.level.material.Fluid fluid, long amount, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, int light, boolean renderBottom, @Nullable net.minecraft.core.component.DataComponentMap fluidData)
     
    static void
    renderFluidBox(net.minecraft.world.level.material.Fluid fluid, long amount, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, int light, boolean renderBottom)
     
    static void
    renderFluidBox(net.minecraft.world.level.material.Fluid fluid, long amount, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, int light, boolean renderBottom, @Nullable net.minecraft.core.component.DataComponentMap fluidData)
     
    static void
    renderStillTiledFace(net.minecraft.core.Direction dir, float left, float down, float right, float up, float depth, com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, int light, int color, net.minecraft.client.renderer.texture.TextureAtlasSprite texture)
     
    static void
    renderTiledFace(net.minecraft.core.Direction dir, float left, float down, float right, float up, float depth, com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, int light, int color, net.minecraft.client.renderer.texture.TextureAtlasSprite texture, float textureScale)
     

    Methods inherited from class java.lang.Object

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

    • BasicFluidRenderer

      public BasicFluidRenderer()
  • Method Details

    • getFluidBuilder

      public static com.mojang.blaze3d.vertex.VertexConsumer getFluidBuilder(net.minecraft.client.renderer.MultiBufferSource buffer)
    • renderFluidBox

      public static void renderFluidBox(net.minecraft.world.level.material.Fluid fluid, long amount, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, int light, boolean renderBottom)
    • renderFluidBox

      public static void renderFluidBox(net.minecraft.world.level.material.Fluid fluid, long amount, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, int light, boolean renderBottom)
    • renderFluidBox

      public static void renderFluidBox(net.minecraft.world.level.material.Fluid fluid, long amount, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, net.minecraft.client.renderer.MultiBufferSource buffer, com.mojang.blaze3d.vertex.PoseStack ms, int light, boolean renderBottom, @Nullable @Nullable net.minecraft.core.component.DataComponentMap fluidData)
    • renderFluidBox

      public static void renderFluidBox(net.minecraft.world.level.material.Fluid fluid, long amount, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, int light, boolean renderBottom, @Nullable @Nullable net.minecraft.core.component.DataComponentMap fluidData)
    • renderStillTiledFace

      public static void renderStillTiledFace(net.minecraft.core.Direction dir, float left, float down, float right, float up, float depth, com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, int light, int color, net.minecraft.client.renderer.texture.TextureAtlasSprite texture)
    • renderTiledFace

      public static void renderTiledFace(net.minecraft.core.Direction dir, float left, float down, float right, float up, float depth, com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, int light, int color, net.minecraft.client.renderer.texture.TextureAtlasSprite texture, float textureScale)
    • putVertex

      protected static void putVertex(com.mojang.blaze3d.vertex.VertexConsumer builder, com.mojang.blaze3d.vertex.PoseStack ms, float x, float y, float z, int color, float u, float v, net.minecraft.core.Direction face, int light)