Class FaceBakery
java.lang.Object
net.minecraft.client.renderer.block.model.FaceBakery
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final float
private static final float
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyElementRotation
(org.joml.Vector3f p_254412_, BlockElementRotation p_254150_) void
applyModelRotation
(org.joml.Vector3f p_254561_, Transformation p_253793_) 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_) private 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_, boolean p_111629_) static Direction
calculateFacing
(int[] p_111613_) private void
fillVertex
(int[] p_111615_, int p_111616_, org.joml.Vector3f p_254291_, TextureAtlasSprite p_111618_, BlockFaceUV p_111619_) private int[]
makeVertices
(BlockFaceUV p_111574_, TextureAtlasSprite p_111575_, Direction p_111576_, float[] p_111577_, Transformation p_111578_, BlockElementRotation p_111579_, boolean p_111580_) private void
recalculateWinding
(int[] p_111631_, Direction p_111632_) static BlockFaceUV
recomputeUVs
(BlockFaceUV p_111582_, Direction p_111583_, Transformation p_111584_) private void
rotateVertexBy
(org.joml.Vector3f p_253804_, org.joml.Vector3f p_253835_, org.joml.Matrix4f p_253730_, org.joml.Vector3f p_254056_) private 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 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_) -
recomputeUVs
public static BlockFaceUV recomputeUVs(BlockFaceUV p_111582_, Direction p_111583_, Transformation p_111584_) -
makeVertices
private int[] makeVertices(BlockFaceUV p_111574_, TextureAtlasSprite p_111575_, Direction p_111576_, float[] p_111577_, Transformation p_111578_, @Nullable BlockElementRotation p_111579_, boolean p_111580_) -
setupShape
private float[] setupShape(org.joml.Vector3f p_254153_, org.joml.Vector3f p_253934_) -
bakeVertex
private 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_, boolean p_111629_) -
fillVertex
private void fillVertex(int[] p_111615_, int p_111616_, org.joml.Vector3f p_254291_, TextureAtlasSprite p_111618_, BlockFaceUV p_111619_) -
applyElementRotation
private void applyElementRotation(org.joml.Vector3f p_254412_, @Nullable BlockElementRotation p_254150_) -
applyModelRotation
-
rotateVertexBy
private void rotateVertexBy(org.joml.Vector3f p_253804_, org.joml.Vector3f p_253835_, org.joml.Matrix4f p_253730_, org.joml.Vector3f p_254056_) -
calculateFacing
-
recalculateWinding
-