@Environment(value=CLIENT) public class BakedQuadFactory extends Object
Modifier and Type | Field and Description |
---|---|
private static float |
MAX_SCALE |
private static float |
MIN_SCALE |
Constructor and Description |
---|
BakedQuadFactory() |
Modifier and Type | Method and 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,
Direction direction,
ModelElementTexture texture,
float[] positionMatrix,
Sprite sprite,
AffineTransformation orientation,
ModelRotation rotation,
boolean shaded) |
private void |
packVertexData(int[] vertices,
int cornerIndex,
Vector3f position,
Sprite sprite,
ModelElementTexture modelElementTexture) |
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) |
private static final float MIN_SCALE
private static final float MAX_SCALE
public BakedQuad bake(Vector3f from, Vector3f to, ModelElementFace face, Sprite texture, Direction side, ModelBakeSettings settings, @Nullable ModelRotation rotation, boolean shade, Identifier modelId)
public static ModelElementTexture uvLock(ModelElementTexture texture, Direction orientation, AffineTransformation rotation, Identifier modelId)
private int[] packVertexData(ModelElementTexture texture, Sprite sprite, Direction direction, float[] positionMatrix, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded)
private void packVertexData(int[] vertices, int cornerIndex, Direction direction, ModelElementTexture texture, float[] positionMatrix, Sprite sprite, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded)
private void packVertexData(int[] vertices, int cornerIndex, Vector3f position, Sprite sprite, ModelElementTexture modelElementTexture)
private void rotateVertex(Vector3f vector, @Nullable ModelRotation rotation)
public void transformVertex(Vector3f vertex, AffineTransformation transformation)
private void transformVertex(Vector3f vertex, Vector3f origin, Matrix4f transformationMatrix, Vector3f scale)
public static Direction decodeDirection(int[] rotationMatrix)
private void encodeDirection(int[] rotationMatrix, Direction direction)