Interface ArmorEquipable

    • Method Detail

      • head

        ItemStack head()
        Gets the head.
        Returns:
        The head, if available
      • setHead

        void setHead​(ItemStack head)
        Sets the head.
        Parameters:
        head - The head
      • chest

        ItemStack chest()
        Gets the chest.
        Returns:
        The chest, if available
      • setChest

        void setChest​(ItemStack chest)
        Sets the chest.
        Parameters:
        chest - The chest
      • legs

        ItemStack legs()
        Gets the legs.
        Returns:
        The legs, if available
      • setLegs

        void setLegs​(ItemStack legs)
        Sets the legs.
        Parameters:
        legs - The legs
      • feet

        ItemStack feet()
        Gets the feet.
        Returns:
        The feet, if available
      • setFeet

        void setFeet​(ItemStack feet)
        Sets the feet.
        Parameters:
        feet - The feet
      • itemInHand

        default ItemStack itemInHand​(java.util.function.Supplier<? extends HandType> handType)
        Gets the equipped item in hand.
        Parameters:
        handType - The hand type to retrieve from
        Returns:
        The item in hand, if available
      • itemInHand

        ItemStack itemInHand​(HandType handType)
        Gets the equipped item in hand.
        Parameters:
        handType - The hand type to retrieve from
        Returns:
        The item in hand, if available
      • setItemInHand

        default void setItemInHand​(java.util.function.Supplier<? extends HandType> handType,
                                   ItemStack itemInHand)
        Sets the equipped item in hand.
        Parameters:
        handType - The hand type to set to
        itemInHand - The item in hand
      • setItemInHand

        void setItemInHand​(HandType handType,
                           ItemStack itemInHand)
        Sets the equipped item in hand.
        Parameters:
        handType - The hand type to set to
        itemInHand - The item in hand