Interface Mannequin

All Superinterfaces:
Attributable, CommandSender, Damageable, Entity, LivingEntity, Metadatable, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Mannequin extends LivingEntity
Represents a mannequin.
  • Method Details

    • getMainHand

      @NotNull MainHand getMainHand()
      Gets the mannequin's main hand.
      Returns:
      the mannequin's main hand
    • setMainHand

      void setMainHand(@NotNull MainHand hand)
      Gets the mannequin's main hand.
      Parameters:
      hand - the mannequin's main hand
    • isModelPartShown

      boolean isModelPartShown(@NotNull PlayerModelPart part)
      Gets whether a part of the mannequin model is shown.
      Parameters:
      part - model part
      Returns:
      if it is shown
    • setModelPartShown

      void setModelPartShown(@NotNull PlayerModelPart part, boolean shown)
      Sets whether a part of the mannequin model is shown.
      Parameters:
      part - model part
      shown - whether it is shown
    • getPlayerProfile

      @Nullable PlayerProfile getPlayerProfile()
      Gets the profile of the player used to texture the mannequin.
      Returns:
      the profile of the owning player
    • setPlayerProfile

      void setPlayerProfile(@Nullable PlayerProfile profile)
      Sets the profile of the player used to texture the mannequin.

      The profile must already contain a skin texture for it to be displayed.

      Parameters:
      profile - the profile of the player texture.
      Throws:
      IllegalArgumentException - if the profile does not contain the necessary information
    • setPose

      void setPose(@NotNull Pose pose)
      Set the mannequin pose.
      Parameters:
      pose - new pose
      Throws:
      IllegalArgumentException - if the pose is not valid for a mannequin
    • isImmovable

      boolean isImmovable()
      Gets whether this mannequin can be moved/pushed.
      Returns:
      whether immovable
    • setImmovable

      void setImmovable(boolean immovable)
      Sets whether this mannequin can be moved/pushed.
      Parameters:
      immovable - new state
    • getDescripion

      @Nullable String getDescripion()
      Gets the description which shows as part of the mannequin's name.
      Returns:
      description the description text
    • setDescription

      void setDescription(@Nullable String description)
      Sets the description which shows as part of the mannequin's name.
      Parameters:
      description - the description to show or null for default
    • isHideDescription

      boolean isHideDescription()
      Gets whether the mannequin description is hidden.
      Returns:
      hide description status
    • setHideDescription

      void setHideDescription(boolean hide)
      Sets whether the mannequin description is hidden.
      Parameters:
      hide - whether to hide description