Class FaceBakery
- java.lang.Object
-
- net.minecraft.client.renderer.model.FaceBakery
-
public class FaceBakery extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static float
RESCALE_22_5
private static float
RESCALE_45
-
Constructor Summary
Constructors Constructor Description FaceBakery()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
applyElementRotation(Vector3f p_199336_1_, BlockPartRotation p_199336_2_)
void
applyModelRotation(Vector3f p_228822_1_, TransformationMatrix p_228822_2_)
BakedQuad
bakeQuad(Vector3f p_228824_1_, Vector3f p_228824_2_, BlockPartFace p_228824_3_, TextureAtlasSprite p_228824_4_, Direction p_228824_5_, IModelTransform p_228824_6_, BlockPartRotation p_228824_7_, boolean p_228824_8_, ResourceLocation p_228824_9_)
private void
bakeVertex(int[] p_228827_1_, int p_228827_2_, Direction p_228827_3_, BlockFaceUV p_228827_4_, float[] p_228827_5_, TextureAtlasSprite p_228827_6_, TransformationMatrix p_228827_7_, BlockPartRotation p_228827_8_, boolean p_228827_9_)
static Direction
calculateFacing(int[] p_178410_0_)
private void
fillVertex(int[] p_239288_1_, int p_239288_2_, Vector3f p_239288_3_, TextureAtlasSprite p_239288_4_, BlockFaceUV p_239288_5_)
private int[]
makeVertices(BlockFaceUV p_228820_1_, TextureAtlasSprite p_228820_2_, Direction p_228820_3_, float[] p_228820_4_, TransformationMatrix p_228820_5_, BlockPartRotation p_228820_6_, boolean p_228820_7_)
private void
recalculateWinding(int[] p_178408_1_, Direction p_178408_2_)
static BlockFaceUV
recomputeUVs(BlockFaceUV p_228821_0_, Direction p_228821_1_, TransformationMatrix p_228821_2_, ResourceLocation p_228821_3_)
private void
rotateVertexBy(Vector3f p_228823_1_, Vector3f p_228823_2_, Matrix4f p_228823_3_, Vector3f p_228823_4_)
private float[]
setupShape(Vector3f p_199337_1_, Vector3f p_199337_2_)
-
-
-
Method Detail
-
bakeQuad
public BakedQuad bakeQuad(Vector3f p_228824_1_, Vector3f p_228824_2_, BlockPartFace p_228824_3_, TextureAtlasSprite p_228824_4_, Direction p_228824_5_, IModelTransform p_228824_6_, @Nullable BlockPartRotation p_228824_7_, boolean p_228824_8_, ResourceLocation p_228824_9_)
-
recomputeUVs
public static BlockFaceUV recomputeUVs(BlockFaceUV p_228821_0_, Direction p_228821_1_, TransformationMatrix p_228821_2_, ResourceLocation p_228821_3_)
-
makeVertices
private int[] makeVertices(BlockFaceUV p_228820_1_, TextureAtlasSprite p_228820_2_, Direction p_228820_3_, float[] p_228820_4_, TransformationMatrix p_228820_5_, @Nullable BlockPartRotation p_228820_6_, boolean p_228820_7_)
-
bakeVertex
private void bakeVertex(int[] p_228827_1_, int p_228827_2_, Direction p_228827_3_, BlockFaceUV p_228827_4_, float[] p_228827_5_, TextureAtlasSprite p_228827_6_, TransformationMatrix p_228827_7_, @Nullable BlockPartRotation p_228827_8_, boolean p_228827_9_)
-
fillVertex
private void fillVertex(int[] p_239288_1_, int p_239288_2_, Vector3f p_239288_3_, TextureAtlasSprite p_239288_4_, BlockFaceUV p_239288_5_)
-
applyElementRotation
private void applyElementRotation(Vector3f p_199336_1_, @Nullable BlockPartRotation p_199336_2_)
-
applyModelRotation
public void applyModelRotation(Vector3f p_228822_1_, TransformationMatrix p_228822_2_)
-
rotateVertexBy
private void rotateVertexBy(Vector3f p_228823_1_, Vector3f p_228823_2_, Matrix4f p_228823_3_, Vector3f p_228823_4_)
-
calculateFacing
public static Direction calculateFacing(int[] p_178410_0_)
-
recalculateWinding
private void recalculateWinding(int[] p_178408_1_, Direction p_178408_2_)
-
-