Package codechicken.lib.util
Class VertexUtils
java.lang.Object
codechicken.lib.util.VertexUtils
Created by covers1624 on 9/7/22.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]mapFormats(com.mojang.blaze3d.vertex.VertexFormat from, com.mojang.blaze3d.vertex.VertexFormat to) static voidpack(float[] from, int[] to, com.mojang.blaze3d.vertex.VertexFormat formatTo, int v, int e) static voidputQuad(IVertexConsumer consumer, net.minecraft.client.renderer.block.model.BakedQuad quad) static voidunpack(int[] from, float[] to, com.mojang.blaze3d.vertex.VertexFormat formatFrom, int v, int e)
-
Constructor Details
-
VertexUtils
public VertexUtils()
-
-
Method Details
-
mapFormats
public static int[] mapFormats(com.mojang.blaze3d.vertex.VertexFormat from, com.mojang.blaze3d.vertex.VertexFormat to) -
putQuad
public static void putQuad(IVertexConsumer consumer, net.minecraft.client.renderer.block.model.BakedQuad quad) -
unpack
public static void unpack(int[] from, float[] to, com.mojang.blaze3d.vertex.VertexFormat formatFrom, int v, int e) -
pack
public static void pack(float[] from, int[] to, com.mojang.blaze3d.vertex.VertexFormat formatTo, int v, int e)
-