Package net.minecraft.client.model.geom
Class ModelPart
java.lang.Object
net.minecraft.client.model.geom.ModelPart
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static class
(package private) static class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<ModelPart.Cube>
static final float
private PartPose
boolean
boolean
float
float
float
float
float
float
float
float
float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
compile
(PoseStack.Pose p_104291_, VertexConsumer p_104292_, int p_104293_, int p_104294_, float p_104295_, float p_104296_, float p_104297_, float p_104298_) void
getRandomCube
(RandomSource p_233559_) boolean
boolean
isEmpty()
void
void
offsetPos
(org.joml.Vector3f p_253873_) void
offsetRotation
(org.joml.Vector3f p_253983_) void
offsetScale
(org.joml.Vector3f p_253957_) void
render
(PoseStack p_104302_, VertexConsumer p_104303_, int p_104304_, int p_104305_) void
render
(PoseStack p_104307_, VertexConsumer p_104308_, int p_104309_, int p_104310_, float p_104311_, float p_104312_, float p_104313_, float p_104314_) void
void
setInitialPose
(PartPose p_233561_) void
setPos
(float p_104228_, float p_104229_, float p_104230_) void
setRotation
(float p_171328_, float p_171329_, float p_171330_) void
translateAndRotate
(PoseStack p_104300_) void
visit
(PoseStack p_171310_, ModelPart.Visitor p_171311_) private void
visit
(PoseStack p_171313_, ModelPart.Visitor p_171314_, String p_171315_)
-
Field Details
-
DEFAULT_SCALE
public static final float DEFAULT_SCALE- See Also:
-
x
public float x -
y
public float y -
z
public float z -
xRot
public float xRot -
yRot
public float yRot -
zRot
public float zRot -
xScale
public float xScale -
yScale
public float yScale -
zScale
public float zScale -
visible
public boolean visible -
skipDraw
public boolean skipDraw -
cubes
-
children
-
initialPose
-
-
Constructor Details
-
ModelPart
-
-
Method Details
-
storePose
-
getInitialPose
-
setInitialPose
-
resetPose
public void resetPose() -
loadPose
-
copyFrom
-
hasChild
-
getChild
-
setPos
public void setPos(float p_104228_, float p_104229_, float p_104230_) -
setRotation
public void setRotation(float p_171328_, float p_171329_, float p_171330_) -
render
-
render
public void render(PoseStack p_104307_, VertexConsumer p_104308_, int p_104309_, int p_104310_, float p_104311_, float p_104312_, float p_104313_, float p_104314_) -
visit
-
visit
-
translateAndRotate
-
compile
private void compile(PoseStack.Pose p_104291_, VertexConsumer p_104292_, int p_104293_, int p_104294_, float p_104295_, float p_104296_, float p_104297_, float p_104298_) -
getRandomCube
-
isEmpty
public boolean isEmpty() -
offsetPos
public void offsetPos(org.joml.Vector3f p_253873_) -
offsetRotation
public void offsetRotation(org.joml.Vector3f p_253983_) -
offsetScale
public void offsetScale(org.joml.Vector3f p_253957_) -
getAllParts
-