枚举常量概要
枚举常量
有0、9、18、27、36、45、54个槽的箱子背包容器
有4个合成物品槽和一个合成产物格子的玩家合成背包。
The creative mode inventory, with only 9 QUICKBAR slots and nothing
else.
有烧炼产物格子、一个被烧连物品格子和一个放燃料的格子的熔炉背包容器
A player's inventory, with 9 QUICKBAR slots, 27 CONTAINER slots, 4 ARMOR
slots and 1 offhand slot.
A shulker box inventory, with 27 slots of type CONTAINER.
方法概要
所有方法 静态方法 实例方法 具体方法
int
按照声明该枚举类型的常量的顺序,
返回一个包含这些常量的数组。
从类继承的方法 java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
枚举常量详细资料
CHEST
有0、9、18、27、36、45、54个槽的箱子背包容器
FURNACE
有烧炼产物格子、一个被烧连物品格子和一个放燃料的格子的熔炉背包容器
WORKBENCH
有9个合成物品槽和合成产物格子的工作台背包容器
CRAFTING
有4个合成物品槽和一个合成产物格子的玩家合成背包。
同样可以访问四个盔甲格子
ENCHANTING
有两个合成槽和三个附魔选项按钮的附魔台背包
BREWING
酿造台背包,有一个燃料槽、一个配方槽和三个药水槽
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
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
有两个交易物槽和一个结果槽的交易背包
SHULKER_BOX
A shulker box inventory, with 27 slots of type CONTAINER.
方法详细资料
values
按照声明该枚举类型的常量的顺序,
返回一个包含这些常量的数组。
返回:
按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
getDefaultSize
public int getDefaultSize ()
getDefaultTitle
public String getDefaultTitle ()