Class BakedQuadFactory
java.lang.Object
net.minecraft.client.render.model.BakedQuadFactory
@Environment(CLIENT) public class BakedQuadFactory extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BakedQuadFactory()
-
Method Summary
Modifier and Type Method Description BakedQuad
bake(Vector3f from, Vector3f to, ModelElementFace face, Sprite texture, Direction side, ModelBakeSettings settings, ModelRotation rotation, boolean shade, Identifier modelId)
static Direction
decodeDirection(int[] rotationMatrix)
private void
encodeDirection(int[] rotationMatrix, Direction direction)
private float[]
getPositionMatrix(Vector3f from, Vector3f to)
private void
packVertexData(int[] vertices, int cornerIndex, Vector3f position, Sprite sprite, ModelElementTexture modelElementTexture)
private void
packVertexData(int[] vertices, int cornerIndex, Direction direction, ModelElementTexture texture, float[] positionMatrix, Sprite sprite, AffineTransformation orientation, ModelRotation rotation, boolean shaded)
private int[]
packVertexData(ModelElementTexture texture, Sprite sprite, Direction direction, float[] positionMatrix, AffineTransformation orientation, ModelRotation rotation, boolean shaded)
private void
rotateVertex(Vector3f vector, ModelRotation rotation)
void
transformVertex(Vector3f vertex, AffineTransformation transformation)
private void
transformVertex(Vector3f vertex, Vector3f origin, Matrix4f transformationMatrix, Vector3f scale)
static ModelElementTexture
uvLock(ModelElementTexture texture, Direction orientation, AffineTransformation rotation, Identifier modelId)
-
Field Details
-
MIN_SCALE
private static final float MIN_SCALE -
MAX_SCALE
private static final float MAX_SCALE
-
-
Constructor Details
-
BakedQuadFactory
public BakedQuadFactory()
-
-
Method Details
-
bake
public BakedQuad bake(Vector3f from, Vector3f to, ModelElementFace face, Sprite texture, Direction side, ModelBakeSettings settings, @Nullable ModelRotation rotation, boolean shade, Identifier modelId) -
uvLock
public static ModelElementTexture uvLock(ModelElementTexture texture, Direction orientation, AffineTransformation rotation, Identifier modelId) -
packVertexData
private int[] packVertexData(ModelElementTexture texture, Sprite sprite, Direction direction, float[] positionMatrix, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded) -
getPositionMatrix
-
packVertexData
private void packVertexData(int[] vertices, int cornerIndex, Direction direction, ModelElementTexture texture, float[] positionMatrix, Sprite sprite, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded) -
packVertexData
private void packVertexData(int[] vertices, int cornerIndex, Vector3f position, Sprite sprite, ModelElementTexture modelElementTexture) -
rotateVertex
-
transformVertex
-
transformVertex
-
decodeDirection
-
encodeDirection
-