Class FaceBakery
java.lang.Object
net.minecraft.client.renderer.model.FaceBakery
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyElementRotation
(Vector3f p_199336_1_, BlockPartRotation p_199336_2_) void
applyModelRotation
(Vector3f p_228822_1_, TransformationMatrix p_228822_2_) 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_)
-
Field Details
-
RESCALE_22_5
private static final float RESCALE_22_5 -
RESCALE_45
private static final float RESCALE_45
-
-
Constructor Details
-
FaceBakery
public FaceBakery()
-
-
Method Details
-
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_) -
setupShape
-
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
-
applyModelRotation
-
rotateVertexBy
-
calculateFacing
-
recalculateWinding
-