Class FaceBakery
java.lang.Object
net.minecraft.client.renderer.block.model.FaceBakery
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatprivate static final floatstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidapplyElementRotation(org.joml.Vector3f p_254412_, BlockElementRotation p_254150_) voidapplyModelRotation(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_, ResourceLocation p_111609_) private voidbakeVertex(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 DirectioncalculateFacing(int[] p_111613_) private voidfillVertex(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 voidrecalculateWinding(int[] p_111631_, Direction p_111632_) static BlockFaceUVrecomputeUVs(BlockFaceUV p_111582_, Direction p_111583_, Transformation p_111584_, ResourceLocation p_111585_) private voidrotateVertexBy(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_SIZEpublic static final int VERTEX_INT_SIZE- See Also:
 
- 
RESCALE_22_5private static final float RESCALE_22_5
- 
RESCALE_45private static final float RESCALE_45
- 
VERTEX_COUNTpublic static final int VERTEX_COUNT- See Also:
 
- 
COLOR_INDEXprivate static final int COLOR_INDEX- See Also:
 
- 
UV_INDEXpublic static final int UV_INDEX- See Also:
 
 
- 
- 
Constructor Details- 
FaceBakerypublic FaceBakery()
 
- 
- 
Method Details- 
bakeQuadpublic 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_, ResourceLocation p_111609_) 
- 
recomputeUVspublic static BlockFaceUV recomputeUVs(BlockFaceUV p_111582_, Direction p_111583_, Transformation p_111584_, ResourceLocation p_111585_) 
- 
makeVerticesprivate int[] makeVertices(BlockFaceUV p_111574_, TextureAtlasSprite p_111575_, Direction p_111576_, float[] p_111577_, Transformation p_111578_, @Nullable BlockElementRotation p_111579_, boolean p_111580_) 
- 
setupShapeprivate float[] setupShape(org.joml.Vector3f p_254153_, org.joml.Vector3f p_253934_) 
- 
bakeVertexprivate 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_) 
- 
fillVertexprivate void fillVertex(int[] p_111615_, int p_111616_, org.joml.Vector3f p_254291_, TextureAtlasSprite p_111618_, BlockFaceUV p_111619_) 
- 
applyElementRotationprivate void applyElementRotation(org.joml.Vector3f p_254412_, @Nullable BlockElementRotation p_254150_) 
- 
applyModelRotation
- 
rotateVertexByprivate void rotateVertexBy(org.joml.Vector3f p_253804_, org.joml.Vector3f p_253835_, org.joml.Matrix4f p_253730_, org.joml.Vector3f p_254056_) 
- 
calculateFacing
- 
recalculateWinding
 
-