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 BakedQuadbake(Vector3f from, Vector3f to, ModelElementFace face, Sprite texture, Direction side, ModelBakeSettings settings, ModelRotation rotation, boolean shade, Identifier modelId)static DirectiondecodeDirection(int[] rotationMatrix)private voidencodeDirection(int[] rotationMatrix, Direction direction)private float[]getPositionMatrix(Vector3f from, Vector3f to)private voidpackVertexData(int[] vertices, int cornerIndex, Vector3f position, Sprite sprite, ModelElementTexture modelElementTexture)private voidpackVertexData(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 voidrotateVertex(Vector3f vector, ModelRotation rotation)voidtransformVertex(Vector3f vertex, AffineTransformation transformation)private voidtransformVertex(Vector3f vertex, Vector3f origin, Matrix4f transformationMatrix, Vector3f scale)static ModelElementTextureuvLock(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
-