Package net.createmod.catnip.utility
Class BasicFluidRenderer
java.lang.Object
net.createmod.catnip.utility.BasicFluidRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.blaze3d.vertex.VertexConsumergetFluidBuilder(net.minecraft.client.renderer.MultiBufferSource buffer) protected static voidputVertex(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 voidrenderFluidBox(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 voidrenderFluidBox(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.nbt.CompoundTag fluidData) static voidrenderFluidBox(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 voidrenderFluidBox(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.nbt.CompoundTag fluidData) static voidrenderStillTiledFace(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 voidrenderTiledFace(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)
-
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.nbt.CompoundTag 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.nbt.CompoundTag 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)
-