Class ModelTree

java.lang.Object
dev.engine_room.flywheel.lib.model.part.ModelTree

public final class ModelTree extends Object
  • Constructor Details

    • ModelTree

      public ModelTree(@Nullable @Nullable Model model, net.minecraft.client.model.geom.PartPose initialPose, Map<String,ModelTree> children)
      Create a new ModelTree node.
      Parameters:
      model - The model to associate with this node, or null if this node does not render.
      initialPose - The initial pose of this node.
      children - The children of this node.
  • Method Details

    • model

      @Nullable public @Nullable Model model()
    • initialPose

      public net.minecraft.client.model.geom.PartPose initialPose()
    • childCount

      public int childCount()
    • child

      public ModelTree child(int index)
    • childName

      public String childName(int index)
    • childIndex

      public int childIndex(String name)
    • hasChild

      public boolean hasChild(String name)
    • child

      @Nullable public @Nullable ModelTree child(String name)
    • childOrThrow

      public ModelTree childOrThrow(String name)