Class RenderUtils

java.lang.Object
codechicken.lib.render.RenderUtils

public class RenderUtils extends Object
  • 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

      public static CCModel makeFluidModel(Cuboid6 bound, net.minecraft.client.renderer.texture.TextureAtlasSprite tex, double res)
    • makeFluidCuboid

      public static void makeFluidCuboid(List<Vertex5> vertices, Cuboid6 bound, net.minecraft.client.renderer.texture.TextureAtlasSprite tex, double res)
    • makeFluidQuadVertices

      public static void makeFluidQuadVertices(List<Vertex5> vertices, Vector3 point1, Vector3 point2, Vector3 point3, Vector3 point4, net.minecraft.client.renderer.texture.TextureAtlasSprite icon, double res)
    • makeFluidQuadVertices

      public static void makeFluidQuadVertices(List<Vertex5> vertices, Vector3 base, Vector3 wide, Vector3 high, net.minecraft.client.renderer.texture.TextureAtlasSprite icon, double res)
    • 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 a CCModel.
      Parameters:
      builder - The VertexConsumer
      c - The Cuboid6
      r - Red color.
      g - Green color.
      b - Blue Color.
      a - Alpha channel.
    • bufferHitbox

      public static void bufferHitbox(Matrix4 mat, net.minecraft.client.renderer.MultiBufferSource getter, net.minecraft.client.Camera renderInfo, Cuboid6 cuboid)
    • bufferHitBox

      public static void bufferHitBox(Matrix4 mat, net.minecraft.client.renderer.MultiBufferSource getter, Cuboid6 cuboid)
    • 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

      public static Matrix4 getMatrix(Matrix4 in, Vector3 translation, Rotation rotation, double scale)
    • getMatrix

      @Deprecated public static Matrix4 getMatrix(Vector3 translation, Rotation rotation, double scale)
      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)