Class FaceBakery
java.lang.Object
net.minecraft.client.renderer.block.model.FaceBakery
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static float
private static float
static int
static int
static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyElementRotation(Vector3f p_111587_, BlockElementRotation p_111588_)
void
applyModelRotation(Vector3f p_111590_, Transformation p_111591_)
bakeQuad(Vector3f p_111601_, Vector3f p_111602_, BlockElementFace p_111603_, TextureAtlasSprite p_111604_, Direction p_111605_, ModelState p_111606_, BlockElementRotation p_111607_, boolean p_111608_, ResourceLocation p_111609_)
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_, Vector3f p_111617_, 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_, ResourceLocation p_111585_)
private void
rotateVertexBy(Vector3f p_111596_, Vector3f p_111597_, Matrix4f p_111598_, Vector3f p_111599_)
private float[]
setupShape(Vector3f p_111593_, Vector3f p_111594_)
-
Field Details
-
VERTEX_INT_SIZE
public static final int VERTEX_INT_SIZE- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
COLOR_INDEX
private static final int COLOR_INDEX- See Also:
- Constant Field Values
-
UV_INDEX
public static final int UV_INDEX- See Also:
- Constant Field Values
-
-
Constructor Details
-
FaceBakery
public FaceBakery()
-
-
Method Details
-
bakeQuad
public BakedQuad bakeQuad(Vector3f p_111601_, Vector3f p_111602_, BlockElementFace p_111603_, TextureAtlasSprite p_111604_, Direction p_111605_, ModelState p_111606_, @Nullable BlockElementRotation p_111607_, boolean p_111608_, ResourceLocation p_111609_) -
recomputeUVs
public static BlockFaceUV recomputeUVs(BlockFaceUV p_111582_, Direction p_111583_, Transformation p_111584_, ResourceLocation p_111585_) -
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
-
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_, Vector3f p_111617_, TextureAtlasSprite p_111618_, BlockFaceUV p_111619_) -
applyElementRotation
-
applyModelRotation
-
rotateVertexBy
-
calculateFacing
-
recalculateWinding
-