枚举 InventoryType

java.lang.Object
java.lang.Enum<InventoryType>
org.bukkit.event.inventory.InventoryType
所有已实现的接口:
Serializable, Comparable<InventoryType>, java.lang.constant.Constable

public enum InventoryType extends Enum<InventoryType>
  • 枚举常量详细资料

    • CHEST

      public static final InventoryType CHEST
      有0、9、18、27、36、45、54个槽的箱子背包容器
    • DISPENSER

      public static final InventoryType DISPENSER
      有9个槽的发射器背包容器
    • DROPPER

      public static final InventoryType DROPPER
      有9个槽的投掷器背包容器
    • FURNACE

      public static final InventoryType FURNACE
      有烧炼产物格子、一个被烧连物品格子和一个放燃料的格子的熔炉背包容器
    • WORKBENCH

      public static final InventoryType WORKBENCH
      有9个合成物品槽和合成产物格子的工作台背包容器
    • CRAFTING

      public static final InventoryType CRAFTING
      有4个合成物品槽和一个合成产物格子的玩家合成背包。 同样可以访问四个盔甲格子
    • ENCHANTING

      public static final InventoryType ENCHANTING
      有两个合成槽和三个附魔选项按钮的附魔台背包
    • BREWING

      public static final InventoryType BREWING
      酿造台背包,有一个燃料槽、一个配方槽和三个药水槽
    • PLAYER

      public static final InventoryType PLAYER
      A player's inventory, with 9 QUICKBAR slots, 27 CONTAINER slots, 4 ARMOR slots and 1 offhand slot. The ARMOR and offhand slots may not be visible to the player, though.
    • CREATIVE

      public static final InventoryType CREATIVE
      The creative mode inventory, with only 9 QUICKBAR slots and nothing else. (The actual creative interface with the items is client-side and cannot be altered by the server.)
    • MERCHANT

      public static final InventoryType MERCHANT
      有两个交易物槽和一个结果槽的交易背包
    • ENDER_CHEST

      public static final InventoryType ENDER_CHEST
      有27个槽的末影箱背包
    • ANVIL

      public static final InventoryType ANVIL
      有两个合成槽和一个结果槽的铁砧背包
    • BEACON

      public static final InventoryType BEACON
      有一个合成槽的信标背包
    • HOPPER

      public static final InventoryType HOPPER
      有五个槽的漏斗背包容器
    • SHULKER_BOX

      public static final InventoryType SHULKER_BOX
      A shulker box inventory, with 27 slots of type CONTAINER.
  • 方法详细资料

    • values

      public static InventoryType[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static InventoryType valueOf(String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getDefaultSize

      public int getDefaultSize()
    • getDefaultTitle

      public String getDefaultTitle()