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
FieldsModifier and TypeFieldDescriptionstatic final EquipmentSlotGroupstatic final EquipmentSlotGroupstatic final EquipmentSlotGroupstatic final EquipmentSlotGroupstatic final EquipmentSlotGroupstatic final EquipmentSlotGroupstatic final EquipmentSlotGroupstatic final EquipmentSlotGroupstatic final EquipmentSlotGroupstatic final EquipmentSlotGroup -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable EquipmentSlotGroupGets theEquipmentSlotGroupcorresponding to the given string.Deprecated.for internal compatibility use onlybooleantest(@NotNull EquipmentSlot test) toString()
-
Field Details
-
ANY
-
MAINHAND
-
OFFHAND
-
HAND
-
FEET
-
LEGS
-
CHEST
-
HEAD
-
ARMOR
-
BODY
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<EquipmentSlot>
-
toString
-
getExample
Deprecated.for internal compatibility use onlyGets anEquipmentSlotwhich 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 theEquipmentSlotGroupcorresponding to the given string.- Parameters:
name- group name- Returns:
- associated group or null
-