Class FaceBakery
java.lang.Object
net.minecraft.client.renderer.block.model.FaceBakery
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatprivate static final floatstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidapplyElementRotation(Vector3f pVec, BlockElementRotation pPartRotation) private static voidapplyModelRotation(Vector3f pPos, Transformation pTransform) static BakedQuadbakeQuad(Vector3f pPosFrom, Vector3f pPosTo, BlockElementFace pFace, TextureAtlasSprite pSprite, Direction pFacing, ModelState pTransform, BlockElementRotation pRotation, boolean pShade, int pLightEmission) private static voidbakeVertex(int[] pVertexData, int pVertexIndex, Direction pFacing, BlockFaceUV pBlockFaceUV, float[] pPosDiv16, TextureAtlasSprite pSprite, Transformation pTransformation, BlockElementRotation pPartRotation) private static DirectioncalculateFacing(int[] pFaceData) private static voidfillVertex(int[] pVertexData, int pVertexIndex, Vector3f pVector, TextureAtlasSprite pSprite, BlockFaceUV pBlockFaceUV) private static int[]makeVertices(BlockFaceUV pUvs, TextureAtlasSprite pSprite, Direction pOrientation, float[] pPosDiv16, Transformation pTransformation, BlockElementRotation pPartRotation) private static voidrecalculateWinding(int[] pVertices, Direction pDirection) static BlockFaceUVrecomputeUVs(BlockFaceUV pUv, Direction pFacing, Transformation pRotation) private static voidrotateVertexBy(Vector3f pPos, Vector3f pOrigin, Matrix4f pTransform, Vector3f pScale) private static float[]setupShape(Vector3f pMin, Vector3f pMax)
-
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 static BakedQuad bakeQuad(Vector3f pPosFrom, Vector3f pPosTo, BlockElementFace pFace, TextureAtlasSprite pSprite, Direction pFacing, ModelState pTransform, @Nullable BlockElementRotation pRotation, boolean pShade, int pLightEmission) -
recomputeUVs
public static BlockFaceUV recomputeUVs(BlockFaceUV pUv, Direction pFacing, Transformation pRotation) -
makeVertices
private static int[] makeVertices(BlockFaceUV pUvs, TextureAtlasSprite pSprite, Direction pOrientation, float[] pPosDiv16, Transformation pTransformation, @Nullable BlockElementRotation pPartRotation) -
setupShape
-
bakeVertex
private static void bakeVertex(int[] pVertexData, int pVertexIndex, Direction pFacing, BlockFaceUV pBlockFaceUV, float[] pPosDiv16, TextureAtlasSprite pSprite, Transformation pTransformation, @Nullable BlockElementRotation pPartRotation) -
fillVertex
private static void fillVertex(int[] pVertexData, int pVertexIndex, Vector3f pVector, TextureAtlasSprite pSprite, BlockFaceUV pBlockFaceUV) -
applyElementRotation
private static void applyElementRotation(Vector3f pVec, @Nullable BlockElementRotation pPartRotation) -
applyModelRotation
-
rotateVertexBy
-
calculateFacing
-
recalculateWinding
-