Package net.minecraft.client.model
Class ModelPart
java.lang.Object
net.minecraft.client.model.ModelPart
@Environment(CLIENT) public class ModelPart extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelPart.Cuboid(package private) static classModelPart.Quad(package private) static classModelPart.Vertex -
Field Summary
Fields Modifier and Type Field Description private ObjectList<ModelPart>childrenprivate ObjectList<ModelPart.Cuboid>cuboidsbooleanmirrorfloatpitchfloatpivotXfloatpivotYfloatpivotZfloatrollprivate floattextureHeightprivate inttextureOffsetUprivate inttextureOffsetVprivate floattextureWidthbooleanvisiblefloatyaw -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddChild(ModelPart part)ModelPartaddCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ)ModelPartaddCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, boolean mirror)voidaddCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extra)voidaddCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extra, boolean mirror)voidaddCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extraX, float extraY, float extraZ)private voidaddCuboid(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)ModelPartaddCuboid(String name, float x, float y, float z, int sizeX, int sizeY, int sizeZ, float extra, int textureOffsetU, int textureOffsetV)voidcopyPositionAndRotation(ModelPart modelPart)ModelPart.CuboidgetRandomCuboid(Random random)ModelPartmethod_29991()voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay)voidrender(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha)private voidrenderCuboids(MatrixStack.Entry matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha)voidrotate(MatrixStack matrix)voidsetPivot(float x, float y, float z)ModelPartsetTextureOffset(int textureOffsetU, int textureOffsetV)ModelPartsetTextureSize(int width, int height)
-
Field Details
-
textureWidth
private float textureWidth -
textureHeight
private float textureHeight -
textureOffsetU
private int textureOffsetU -
textureOffsetV
private int textureOffsetV -
pivotX
public float pivotX -
pivotY
public float pivotY -
pivotZ
public float pivotZ -
pitch
public float pitch -
yaw
public float yaw -
roll
public float roll -
mirror
public boolean mirror -
visible
public boolean visible -
cuboids
-
children
-
-
Constructor Details
-
ModelPart
-
ModelPart
-
ModelPart
public ModelPart(int textureWidth, int textureHeight, int textureOffsetU, int textureOffsetV) -
ModelPart
private ModelPart()
-
-
Method Details
-
method_29991
-
copyPositionAndRotation
-
addChild
-
setTextureOffset
-
addCuboid
-
addCuboid
-
addCuboid
public ModelPart addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, boolean mirror) -
addCuboid
public void addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extra) -
addCuboid
public void addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extraX, float extraY, float extraZ) -
addCuboid
public void addCuboid(float x, float y, float z, float sizeX, float sizeY, float sizeZ, float extra, boolean mirror) -
addCuboid
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) -
setPivot
public void setPivot(float x, float y, float z) -
render
-
render
public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha) -
rotate
-
renderCuboids
private void renderCuboids(MatrixStack.Entry matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha) -
setTextureSize
-
getRandomCuboid
-