@Environment(value=CLIENT) public class ModelPart extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelPart.Cuboid |
(package private) static class |
ModelPart.Quad |
(package private) static class |
ModelPart.Vertex |
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.objects.ObjectList<ModelPart> |
children |
private it.unimi.dsi.fastutil.objects.ObjectList<ModelPart.Cuboid> |
cuboids |
boolean |
mirror |
float |
pitch |
float |
pivotX |
float |
pivotY |
float |
pivotZ |
float |
roll |
private float |
textureHeight |
private int |
textureOffsetU |
private int |
textureOffsetV |
private float |
textureWidth |
boolean |
visible |
float |
yaw |
Modifier | Constructor and Description |
---|---|
private |
ModelPart() |
|
ModelPart(int textureWidth,
int textureHeight,
int textureOffsetU,
int textureOffsetV) |
|
ModelPart(Model model) |
|
ModelPart(Model model,
int textureOffsetU,
int textureOffsetV) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ModelPart part) |
ModelPart |
addCuboid(float x,
float y,
float z,
float sizeX,
float sizeY,
float sizeZ) |
ModelPart |
addCuboid(float x,
float y,
float z,
float sizeX,
float sizeY,
float sizeZ,
boolean mirror) |
void |
addCuboid(float x,
float y,
float z,
float sizeX,
float sizeY,
float sizeZ,
float extra) |
void |
addCuboid(float x,
float y,
float z,
float sizeX,
float sizeY,
float sizeZ,
float extra,
boolean mirror) |
void |
addCuboid(float x,
float y,
float z,
float sizeX,
float sizeY,
float sizeZ,
float extraX,
float extraY,
float extraZ) |
private void |
addCuboid(int u,
int v,
float x,
float y,
float z,
float sizeX,
float sizeY,
float sizeZ,
float extraX,
float extraY,
float extraZ,
boolean mirror,
boolean bool) |
ModelPart |
addCuboid(String name,
float x,
float y,
float z,
int sizeX,
int sizeY,
int sizeZ,
float extra,
int textureOffsetU,
int textureOffsetV) |
void |
copyPositionAndRotation(ModelPart modelPart) |
ModelPart.Cuboid |
getRandomCuboid(Random random) |
ModelPart |
method_29991() |
void |
render(MatrixStack matrices,
VertexConsumer vertices,
int light,
int overlay) |
void |
render(MatrixStack matrices,
VertexConsumer vertices,
int light,
int overlay,
float red,
float green,
float blue,
float alpha) |
private void |
renderCuboids(MatrixStack.Entry matrices,
VertexConsumer vertexConsumer,
int light,
int overlay,
float red,
float green,
float blue,
float alpha) |
void |
rotate(MatrixStack matrix) |
void |
setPivot(float x,
float y,
float z) |
ModelPart |
setTextureOffset(int textureOffsetU,
int textureOffsetV) |
ModelPart |
setTextureSize(int width,
int height) |
private float textureWidth
private float textureHeight
private int textureOffsetU
private int textureOffsetV
public float pivotX
public float pivotY
public float pivotZ
public float pitch
public float yaw
public float roll
public boolean mirror
public boolean visible
private final it.unimi.dsi.fastutil.objects.ObjectList<ModelPart.Cuboid> cuboids
private final it.unimi.dsi.fastutil.objects.ObjectList<ModelPart> children
public ModelPart(Model model)
public ModelPart(Model model, int textureOffsetU, int textureOffsetV)
public ModelPart(int textureWidth, int textureHeight, int textureOffsetU, int textureOffsetV)
private ModelPart()
public ModelPart method_29991()
public void copyPositionAndRotation(ModelPart modelPart)
public void addChild(ModelPart part)
public ModelPart setTextureOffset(int textureOffsetU, int textureOffsetV)
public ModelPart addCuboid(String name, float x, float y, float z, int sizeX, int sizeY, int sizeZ, float extra, int textureOffsetU, int textureOffsetV)
public ModelPart addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ)
public ModelPart addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, boolean mirror)
public void addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extra)
public void addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extraX, float extraY, float extraZ)
public void addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extra, boolean mirror)
private void addCuboid(int u, int v, float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extraX, float extraY, float extraZ, boolean mirror, boolean bool)
public void setPivot(float x, float y, float z)
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay)
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)
public void rotate(MatrixStack matrix)
private void renderCuboids(MatrixStack.Entry matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha)
public ModelPart setTextureSize(int width, int height)
public ModelPart.Cuboid getRandomCuboid(Random random)