Interface EntityEquipment

All Known Subinterfaces:
Inventory

public interface EntityEquipment
Represents the equipment of an entity.
  • Method Details

    • get

      @NotNull @NotNull ItemStack get(@NotNull @NotNull EquipmentSlot slot)
      Gets the equipment at the specified equipment slot.
      Parameters:
      slot - the slot
      Returns:
      the item at the specified equipment slot
      Since:
      1.0.0
    • set

      @NotNull @NotNull ItemStack set(@NotNull @NotNull EquipmentSlot slot, @NotNull @NotNull ItemStack equipment)
      Sets the equipment at the specified equipment slot.
      Parameters:
      slot - the slot
      equipment - the item to set
      Returns:
      the previous item
      Since:
      1.0.0
    • itemInMainHand

      @NotNull default @NotNull ItemStack itemInMainHand()
      Since:
      1.0.0
    • itemInMainHand

      default void itemInMainHand(@NotNull @NotNull ItemStack item)
      Since:
      1.0.0
    • itemInOffHand

      @NotNull default @NotNull ItemStack itemInOffHand()
      Since:
      1.0.0
    • itemInOffHand

      default void itemInOffHand(@NotNull @NotNull ItemStack item)
      Since:
      1.0.0
    • helmet

      @NotNull default @NotNull ItemStack helmet()
      Since:
      1.0.0
    • helmet

      default void helmet(@NotNull @NotNull ItemStack item)
      Since:
      1.0.0
    • chestplate

      @NotNull default @NotNull ItemStack chestplate()
      Since:
      1.0.0
    • chestplate

      default void chestplate(@NotNull @NotNull ItemStack item)
      Since:
      1.0.0
    • leggings

      @NotNull default @NotNull ItemStack leggings()
      Since:
      1.0.0
    • leggings

      default void leggings(@NotNull @NotNull ItemStack item)
      Since:
      1.0.0
    • boots

      @NotNull default @NotNull ItemStack boots()
      Since:
      1.0.0
    • boots

      default void boots(@NotNull @NotNull ItemStack item)
      Since:
      1.0.0
    • asMap

      Gets the equipment as a map.
      Returns:
      a map that contains the equipment, empty stacks are not stored