Class FaceBakery
java.lang.Object
net.minecraft.client.renderer.block.model.FaceBakery
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BakedQuadbakeQuad(ModelBaker.Interner interner, Vector3fc from, Vector3fc to, BlockElementFace.UVs uvs, Quadrant uvRotation, int tintIndex, BakedQuad.SpriteInfo spriteInfo, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission) Deprecated.static BakedQuadbakeQuad(ModelBaker.Interner interner, Vector3fc from, Vector3fc to, BlockElementFace.UVs uvs, Quadrant uvRotation, int tintIndex, BakedQuad.SpriteInfo spriteInfo, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission, ExtraFaceData faceData) static BakedQuadbakeQuad(ModelBaker modelBaker, Vector3fc from, Vector3fc to, BlockElementFace face, Material.Baked material, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission) private static voidbakeVertex(int index, FaceInfo faceInfo, BlockElementFace.UVs uvs, Quadrant uvRotation, Matrix4fc uvTransform, Vector3fc from, Vector3fc to, BakedQuad.SpriteInfo spriteInfo, Transformation rotation, @Nullable BlockElementRotation elementRotation, Vector3fc[] positionOutput, long[] uvOutput, ModelBaker.Interner interner) private static @Nullable DirectioncalculateFacing(Vector3fc[] positions) private static floatcenterToCorner(float value) private static TransparencycomputeMaterialTransparency(Material.Baked material, BlockElementFace.UVs uvs) private static floatcornerToCenter(float value) static BlockElementFace.UVsdefaultFaceUV(Vector3fc from, Vector3fc to, Direction facing) private static @Nullable DirectionfindClosestDirection(Vector3f direction) private static intfindVertex(Vector3fc[] positions, int start, float x, float y, float z) static voidrecalculateWinding(Vector3fc[] positions, long[] uvs, Direction direction) static voidrecalculateWinding(Vector3fc[] positions, long[] uvs, Direction direction, int @Nullable [] colors, int @Nullable [] normals) private static voidrotateVertexBy(Vector3f vertex, Vector3fc origin, Matrix4fc transformation) private static voidswap(int[] array, int indexA, int indexB) private static voidswap(long[] array, int indexA, int indexB) private static void
-
Field Details
-
BLOCK_MIDDLE
-
-
Constructor Details
-
FaceBakery
public FaceBakery()
-
-
Method Details
-
defaultFaceUV
-
computeMaterialTransparency
private static Transparency computeMaterialTransparency(Material.Baked material, BlockElementFace.UVs uvs) -
bakeQuad
public static BakedQuad bakeQuad(ModelBaker modelBaker, Vector3fc from, Vector3fc to, BlockElementFace face, Material.Baked material, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission) -
bakeQuad
@Deprecated public static BakedQuad bakeQuad(ModelBaker.Interner interner, Vector3fc from, Vector3fc to, BlockElementFace.UVs uvs, Quadrant uvRotation, int tintIndex, BakedQuad.SpriteInfo spriteInfo, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission) -
bakeQuad
public static BakedQuad bakeQuad(ModelBaker.Interner interner, Vector3fc from, Vector3fc to, BlockElementFace.UVs uvs, Quadrant uvRotation, int tintIndex, BakedQuad.SpriteInfo spriteInfo, Direction facing, ModelState modelState, @Nullable BlockElementRotation elementRotation, boolean shade, int lightEmission, ExtraFaceData faceData) -
bakeVertex
private static void bakeVertex(int index, FaceInfo faceInfo, BlockElementFace.UVs uvs, Quadrant uvRotation, Matrix4fc uvTransform, Vector3fc from, Vector3fc to, BakedQuad.SpriteInfo spriteInfo, Transformation rotation, @Nullable BlockElementRotation elementRotation, Vector3fc[] positionOutput, long[] uvOutput, ModelBaker.Interner interner) -
cornerToCenter
private static float cornerToCenter(float value) -
centerToCorner
private static float centerToCorner(float value) -
rotateVertexBy
-
calculateFacing
-
findClosestDirection
-
recalculateWinding
-
recalculateWinding
-
findVertex
-
swap
-
swap
private static void swap(long[] array, int indexA, int indexB) -
swap
private static void swap(int[] array, int indexA, int indexB)
-
bakeQuad(ModelBaker.Interner, Vector3fc, Vector3fc, BlockElementFace.UVs, Quadrant, int, BakedQuad.SpriteInfo, Direction, ModelState, BlockElementRotation, boolean, int, net.neoforged.neoforge.client.model.ExtraFaceData)instead