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
static final EquipmentSlotGroup
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable EquipmentSlotGroup
Gets theEquipmentSlotGroup
corresponding to the given string.Deprecated.for internal compatibility use onlyboolean
test
(@NotNull EquipmentSlot test) toString()
-
Field Details
-
ANY
-
MAINHAND
-
OFFHAND
-
HAND
-
FEET
-
LEGS
-
CHEST
-
HEAD
-
ARMOR
-
BODY
-
-
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
@Nullable @Internal public static @Nullable EquipmentSlotGroup getByName(@NotNull @NotNull String name) Gets theEquipmentSlotGroup
corresponding to the given string.- Parameters:
name
- group name- Returns:
- associated group or null
-