Class VillagerResemblingModel<T extends Entity>

All Implemented Interfaces:
Consumer<ModelPart>, ModelWithHat, ModelWithHead
Direct Known Subclasses:
WitchEntityModel

@Environment(CLIENT)
public class VillagerResemblingModel<T extends Entity>
extends CompositeEntityModel<T>
implements ModelWithHead, ModelWithHat
  • Field Details

  • Constructor Details

    • VillagerResemblingModel

      public VillagerResemblingModel​(float scale)
    • VillagerResemblingModel

      public VillagerResemblingModel​(float scale, int textureWidth, int textureHeight)
  • Method Details

    • getParts

      public Iterable<ModelPart> getParts()
      Specified by:
      getParts in class CompositeEntityModel<T extends Entity>
    • setAngles

      public void setAngles​(T entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch)
      Specified by:
      setAngles in class EntityModel<T extends Entity>
    • getHead

      public ModelPart getHead()
      Gets the head model part.
      Specified by:
      getHead in interface ModelWithHead
      Returns:
      the head
    • setHatVisible

      public void setHatVisible​(boolean visible)
      Sets whether the hat is visible or not.
      Specified by:
      setHatVisible in interface ModelWithHat
      Parameters:
      visible - true if the hat is visible, otherwise false