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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for the equippable componentstatic enumThe slot in which the equipment can be worn. -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaEquippable.Builderbuilder()Creates a builder for the equippable component.static JavaEquippableCreates an equippable component for an equipment slot.slot()The equipment slot where this item can be worn.
-
Method Details
-
slot
JavaEquippable.EquipmentSlot slot()The equipment slot where this item can be worn.- Returns:
- the equipment slot
-
builder
Creates a builder for the equippable component.- Returns:
- a new builder
-
of
Creates an equippable component for an equipment slot.- Parameters:
slot- the slot in which the item can be equipped- Returns:
- the Equippable component
-