Class FaceBakery
java.lang.Object
net.minecraft.client.renderer.block.model.FaceBakery
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final float
private static final float
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
applyElementRotation
(org.joml.Vector3f p_254412_, BlockElementRotation p_254150_) private static void
applyModelRotation
(org.joml.Vector3f p_254561_, Transformation p_253793_) static BakedQuad
bakeQuad
(org.joml.Vector3f p_253895_, org.joml.Vector3f p_253976_, BlockElementFace p_111603_, TextureAtlasSprite p_111604_, Direction p_111605_, ModelState p_111606_, BlockElementRotation p_111607_, boolean p_111608_, int p_364857_) private static void
bakeVertex
(int[] p_111621_, int p_111622_, Direction p_111623_, BlockFaceUV p_111624_, float[] p_111625_, TextureAtlasSprite p_111626_, Transformation p_111627_, BlockElementRotation p_111628_) private static Direction
calculateFacing
(int[] p_111613_) private static void
fillVertex
(int[] p_111615_, int p_111616_, org.joml.Vector3f p_254291_, TextureAtlasSprite p_111618_, BlockFaceUV p_111619_) private static int[]
makeVertices
(BlockFaceUV p_111574_, TextureAtlasSprite p_111575_, Direction p_111576_, float[] p_111577_, Transformation p_111578_, BlockElementRotation p_111579_) private static void
recalculateWinding
(int[] p_111631_, Direction p_111632_) static BlockFaceUV
recomputeUVs
(BlockFaceUV p_111582_, Direction p_111583_, Transformation p_111584_) private static void
rotateVertexBy
(org.joml.Vector3f p_253804_, org.joml.Vector3f p_253835_, org.joml.Matrix4f p_253730_, org.joml.Vector3f p_254056_) private static float[]
setupShape
(org.joml.Vector3f p_254153_, org.joml.Vector3f p_253934_)
-
Field Details
-
VERTEX_INT_SIZE
public static final int VERTEX_INT_SIZE- See Also:
-
RESCALE_22_5
private static final float RESCALE_22_5 -
RESCALE_45
private static final float RESCALE_45 -
VERTEX_COUNT
public static final int VERTEX_COUNT- See Also:
-
COLOR_INDEX
private static final int COLOR_INDEX- See Also:
-
UV_INDEX
public static final int UV_INDEX- See Also:
-
-
Constructor Details
-
FaceBakery
public FaceBakery()
-
-
Method Details
-
bakeQuad
public static BakedQuad bakeQuad(org.joml.Vector3f p_253895_, org.joml.Vector3f p_253976_, BlockElementFace p_111603_, TextureAtlasSprite p_111604_, Direction p_111605_, ModelState p_111606_, @Nullable BlockElementRotation p_111607_, boolean p_111608_, int p_364857_) -
recomputeUVs
public static BlockFaceUV recomputeUVs(BlockFaceUV p_111582_, Direction p_111583_, Transformation p_111584_) -
makeVertices
private static int[] makeVertices(BlockFaceUV p_111574_, TextureAtlasSprite p_111575_, Direction p_111576_, float[] p_111577_, Transformation p_111578_, @Nullable BlockElementRotation p_111579_) -
setupShape
private static float[] setupShape(org.joml.Vector3f p_254153_, org.joml.Vector3f p_253934_) -
bakeVertex
private static void bakeVertex(int[] p_111621_, int p_111622_, Direction p_111623_, BlockFaceUV p_111624_, float[] p_111625_, TextureAtlasSprite p_111626_, Transformation p_111627_, @Nullable BlockElementRotation p_111628_) -
fillVertex
private static void fillVertex(int[] p_111615_, int p_111616_, org.joml.Vector3f p_254291_, TextureAtlasSprite p_111618_, BlockFaceUV p_111619_) -
applyElementRotation
private static void applyElementRotation(org.joml.Vector3f p_254412_, @Nullable BlockElementRotation p_254150_) -
applyModelRotation
-
rotateVertexBy
private static void rotateVertexBy(org.joml.Vector3f p_253804_, org.joml.Vector3f p_253835_, org.joml.Matrix4f p_253730_, org.joml.Vector3f p_254056_) -
calculateFacing
-
recalculateWinding
-