Interface JavaEquippable


public interface JavaEquippable
The equippable component is used to mark an item as equippable. Bedrock allows specifying the slot where an item can be worn.
Since:
2.9.3
  • Method Details

    • slot

      The equipment slot where this item can be worn.
      Returns:
      the equipment slot
    • builder

      static @NonNull JavaEquippable.Builder builder()
      Creates a builder for the equippable component.
      Returns:
      a new builder
    • of

      static @NonNull JavaEquippable of(JavaEquippable.EquipmentSlot slot)
      Creates an equippable component for an equipment slot.
      Parameters:
      slot - the slot in which the item can be equipped
      Returns:
      the Equippable component