Class ModelPart

java.lang.Object
net.minecraft.client.model.geom.ModelPart

public final class ModelPart extends Object
  • 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

      private final List<ModelPart.Cube> cubes
    • children

      private final Map<String,ModelPart> children
    • initialPose

      private PartPose initialPose
  • Constructor Details

  • Method Details

    • storePose

      public PartPose storePose()
    • getInitialPose

      public PartPose getInitialPose()
    • setInitialPose

      public void setInitialPose(PartPose p_233561_)
    • resetPose

      public void resetPose()
    • loadPose

      public void loadPose(PartPose p_171323_)
    • copyFrom

      public void copyFrom(ModelPart p_104316_)
    • hasChild

      public boolean hasChild(String p_233563_)
    • getChild

      public ModelPart getChild(String p_171325_)
    • 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

      public void render(PoseStack p_104302_, VertexConsumer p_104303_, int p_104304_, int p_104305_)
    • 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

      public void visit(PoseStack p_171310_, ModelPart.Visitor p_171311_)
    • visit

      private void visit(PoseStack p_171313_, ModelPart.Visitor p_171314_, String p_171315_)
    • translateAndRotate

      public void translateAndRotate(PoseStack p_104300_)
    • 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

      public ModelPart.Cube getRandomCube(RandomSource p_233559_)
    • 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

      public Stream<ModelPart> getAllParts()