Package codechicken.lib.render
Class RenderUtils
java.lang.Object
codechicken.lib.render.RenderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbufferCuboidOutline(com.mojang.blaze3d.vertex.VertexConsumer builder, Cuboid6 c, float r, float g, float b, float a) static voidbufferCuboidSolid(com.mojang.blaze3d.vertex.VertexConsumer builder, Cuboid6 c, float r, float g, float b, float a) Builds a solid cuboid.static voidbufferHitbox(Matrix4 mat, net.minecraft.client.renderer.MultiBufferSource getter, net.minecraft.client.Camera renderInfo, Cuboid6 cuboid) static voidbufferHitBox(Matrix4 mat, net.minecraft.client.renderer.MultiBufferSource getter, Cuboid6 cuboid) static voidbufferShapeHitBox(Matrix4 mat, net.minecraft.client.renderer.MultiBufferSource buffers, net.minecraft.client.Camera renderInfo, net.minecraft.world.phys.shapes.VoxelShape shape) static voidbufferShapeHitBox(Matrix4 mat, net.minecraft.client.renderer.MultiBufferSource buffers, net.minecraft.world.phys.shapes.VoxelShape shape) static voidbufferShapeOutline(com.mojang.blaze3d.vertex.VertexConsumer builder, net.minecraft.world.phys.shapes.VoxelShape shape, float r, float g, float b, float a) static net.minecraft.client.renderer.RenderTypestatic Matrix4static Matrix4Deprecated.static floatgetPearlBob(double time) static intgetTimeOffset(int x, int y, int z) static intgetTimeOffset(net.minecraft.core.BlockPos pos) static voidmakeFluidCuboid(List<Vertex5> vertices, Cuboid6 bound, net.minecraft.client.renderer.texture.TextureAtlasSprite tex, double res) static CCModelmakeFluidModel(Cuboid6 bound, net.minecraft.client.renderer.texture.TextureAtlasSprite tex, double res) static voidmakeFluidQuadVertices(List<Vertex5> vertices, Vector3 point1, Vector3 point2, Vector3 point3, Vector3 point4, net.minecraft.client.renderer.texture.TextureAtlasSprite icon, double res) static voidmakeFluidQuadVertices(List<Vertex5> vertices, Vector3 base, Vector3 wide, Vector3 high, net.minecraft.client.renderer.texture.TextureAtlasSprite icon, double res) static voidrenderFluidCuboid(CCRenderState ccrs, Matrix4 mat, net.minecraft.client.renderer.RenderType renderType, net.minecraft.client.renderer.MultiBufferSource source, net.neoforged.neoforge.fluids.FluidStack stack, Cuboid6 bound, double capacity, double res)
-
Constructor Details
-
RenderUtils
public RenderUtils()
-
-
Method Details
-
getFluidRenderType
public static net.minecraft.client.renderer.RenderType getFluidRenderType() -
renderFluidCuboid
public static void renderFluidCuboid(CCRenderState ccrs, Matrix4 mat, net.minecraft.client.renderer.RenderType renderType, net.minecraft.client.renderer.MultiBufferSource source, net.neoforged.neoforge.fluids.FluidStack stack, Cuboid6 bound, double capacity, double res) -
makeFluidModel
-
makeFluidCuboid
-
makeFluidQuadVertices
-
makeFluidQuadVertices
-
bufferCuboidSolid
public static void bufferCuboidSolid(com.mojang.blaze3d.vertex.VertexConsumer builder, Cuboid6 c, float r, float g, float b, float a) Builds a solid cuboid. Expects VertexFormat of POSITION_COLOR. If you need anything more specialized, Use aCCModel.- Parameters:
builder- TheVertexConsumerc- TheCuboid6r- Red color.g- Green color.b- Blue Color.a- Alpha channel.
-
bufferHitbox
-
bufferHitBox
-
bufferCuboidOutline
public static void bufferCuboidOutline(com.mojang.blaze3d.vertex.VertexConsumer builder, Cuboid6 c, float r, float g, float b, float a) -
bufferShapeHitBox
public static void bufferShapeHitBox(Matrix4 mat, net.minecraft.client.renderer.MultiBufferSource buffers, net.minecraft.client.Camera renderInfo, net.minecraft.world.phys.shapes.VoxelShape shape) -
bufferShapeHitBox
public static void bufferShapeHitBox(Matrix4 mat, net.minecraft.client.renderer.MultiBufferSource buffers, net.minecraft.world.phys.shapes.VoxelShape shape) -
bufferShapeOutline
public static void bufferShapeOutline(com.mojang.blaze3d.vertex.VertexConsumer builder, net.minecraft.world.phys.shapes.VoxelShape shape, float r, float g, float b, float a) -
getMatrix
-
getMatrix
Deprecated. -
getPearlBob
public static float getPearlBob(double time) -
getTimeOffset
public static int getTimeOffset(net.minecraft.core.BlockPos pos) -
getTimeOffset
public static int getTimeOffset(int x, int y, int z)
-