Package org.bukkit.inventory
Class EquipmentSlotGroup
java.lang.Object
org.bukkit.inventory.EquipmentSlotGroup
- All Implemented Interfaces:
Predicate<EquipmentSlot>
@Experimental
public final class EquipmentSlotGroup
extends Object
implements Predicate<EquipmentSlot>
Represents a group of
EquipmentSlot
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final EquipmentSlotGroup
static final EquipmentSlotGroup
static final EquipmentSlotGroup
static final EquipmentSlotGroup
static final EquipmentSlotGroup
static final EquipmentSlotGroup
static final EquipmentSlotGroup
static final EquipmentSlotGroup
static final EquipmentSlotGroup
-
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentSlotGroup
Gets theEquipmentSlotGroup
corresponding to the given string.Deprecated.for internal compatibility use onlyboolean
test
(EquipmentSlot test) toString()
-
Field Details
-
ANY
-
MAINHAND
-
OFFHAND
-
HAND
-
FEET
-
LEGS
-
CHEST
-
HEAD
-
ARMOR
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<EquipmentSlot>
-
toString
-
getExample
Deprecated.for internal compatibility use onlyGets anEquipmentSlot
which is an example of a slot in this group.- Returns:
- an example slot
-
getByName
Gets theEquipmentSlotGroup
corresponding to the given string.- Parameters:
name
- group name- Returns:
- associated group or null
-