程序包 org.bukkit.inventory

# 类 EquipmentSlotGroup

java.lang.Object
org.bukkit.inventory.EquipmentSlotGroup

所有已实现的接口:
  `Predicate<EquipmentSlot>`

@Experimental public final class EquipmentSlotGroup extends Object implements Predicate<EquipmentSlot>
Represents a group of `EquipmentSlot`.

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `static final EquipmentSlotGroup`
  `ANY`
  `static final EquipmentSlotGroup`
  `ARMOR`
  `static final EquipmentSlotGroup`
  `CHEST`
  `static final EquipmentSlotGroup`
  `FEET`
  `static final EquipmentSlotGroup`
  `HAND`
  `static final EquipmentSlotGroup`
  `HEAD`
  `static final EquipmentSlotGroup`
  `LEGS`
  `static final EquipmentSlotGroup`
  `MAINHAND`
  `static final EquipmentSlotGroup`
  `OFFHAND`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static @Nullable EquipmentSlotGroup`
  `getByName(@NotNull String name)`
  Gets the `EquipmentSlotGroup` corresponding to the given string.
  `@NotNull EquipmentSlot`
  `getExample()`
  已过时。
  for internal compatibility use only
  `boolean`
  `test(@NotNull EquipmentSlot test)`
  `String`
  `toString()`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### 从接口继承的方法 java.util.function.Predicate

  `and, negate, or`

- ## 字段详细资料

  - ### ANY

    public static final EquipmentSlotGroup ANY

  - ### MAINHAND

    public static final EquipmentSlotGroup MAINHAND

  - ### OFFHAND

    public static final EquipmentSlotGroup OFFHAND

  - ### HAND

    public static final EquipmentSlotGroup HAND

  - ### FEET

    public static final EquipmentSlotGroup FEET

  - ### LEGS

    public static final EquipmentSlotGroup LEGS

  - ### CHEST

    public static final EquipmentSlotGroup CHEST

  - ### HEAD

    public static final EquipmentSlotGroup HEAD

  - ### ARMOR

    public static final EquipmentSlotGroup ARMOR

- ## 方法详细资料

  - ### test

    public boolean test(@NotNull @NotNull EquipmentSlot test)
    指定者:
      `test` 在接口中 `Predicate<EquipmentSlot>`

  - ### toString

    public String toString()
    覆盖:
      `toString` 在类中 `Object`

  - ### getExample

    @NotNull @Deprecated @Internal public @NotNull EquipmentSlot getExample()
    已过时。
    for internal compatibility use only
    Gets an `EquipmentSlot` which is an example of a slot in this group.
    返回:
      an example slot

  - ### getByName

    @Nullable @Internal public static @Nullable EquipmentSlotGroup getByName(@NotNull @NotNull String name)
    Gets the `EquipmentSlotGroup` corresponding to the given string.
    参数:
      `name` - group name
    返回:
      associated group or null