Interface Mannequin

All Superinterfaces:
Attributable, Audience, CommandSender, Damageable, DataComponentView, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Metadatable, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

@NullMarked public interface Mannequin extends LivingEntity
  • Method Details

    • defaultProfile

      static ResolvableProfile defaultProfile()
      Returns the default mannequin profile.
      Returns:
      the default mannequin profile
    • defaultDescription

      static Component defaultDescription()
      Returns the default mannequin description.
      Returns:
      the default mannequin description
    • getProfile

      ResolvableProfile getProfile()
      Gets the resolvable profile for this mannequin.
      Returns:
      the resolvable profile
    • setProfile

      void setProfile(ResolvableProfile profile)
      Sets the resolvable profile for this mannequin.
      Parameters:
      profile - the new resolvable profile
    • getSkinParts

      SkinParts.Mutable getSkinParts()
      Gets a copy of the current skin part options for this mannequin.
      Returns:
      a copy of the current skin part options
    • setSkinParts

      void setSkinParts(SkinParts parts)
      Sets the skin part options for this mannequin.
      Parameters:
      parts - the new skin part options
    • isImmovable

      boolean isImmovable()
      Checks if this mannequin is immovable.
      Returns:
      whether this mannequin is immovable
    • setImmovable

      void setImmovable(boolean immovable)
      Sets whether this mannequin is immovable.
      Parameters:
      immovable - new immovable state
    • getDescription

      @Nullable Component getDescription()
      Gets the description text for this mannequin (appears below the name).
      Returns:
      the description, or null if none is set
    • setDescription

      void setDescription(@Nullable Component description)
      Sets the description text for this mannequin (appears below the name). Setting the description to null will remove it.
      Parameters:
      description - the new description, or null to remove it
    • getMainHand

      MainHand getMainHand()
      Gets the main hand of this mannequin.
      Returns:
      the main hand
    • setMainHand

      void setMainHand(MainHand hand)
      Sets the main hand of this mannequin.
      Parameters:
      hand - the new main hand
    • getEquipment

      EntityEquipment getEquipment()
      Description copied from interface: LivingEntity
      Gets the inventory with the equipment worn by the living entity.
      Specified by:
      getEquipment in interface LivingEntity
      Returns:
      the living entity's inventory