Serializable
, Comparable<InventoryType>
public enum InventoryType extends Enum<InventoryType>
isCreatable()
can be created.
Bukkit.createInventory(org.bukkit.inventory.InventoryHolder, org.bukkit.event.inventory.InventoryType)
are:SeeCREATIVE
,CRAFTING
andMERCHANT
Bukkit.createInventory(org.bukkit.inventory.InventoryHolder, org.bukkit.event.inventory.InventoryType)
for more information.Modifier and Type | Class | Description |
---|---|---|
static class |
InventoryType.SlotType |
Enum Constant | Description |
---|---|
ANVIL |
An anvil inventory, with 2 CRAFTING slots and 1 RESULT slot
|
BARREL |
A barrel box inventory, with 27 slots of type CONTAINER.
|
BEACON |
A beacon inventory, with 1 CRAFTING slot
|
BLAST_FURNACE |
A blast furnace inventory, with a RESULT slot, a CRAFTING slot, and a
FUEL slot.
|
BREWING |
A brewing stand inventory, with one FUEL slot and four CRAFTING slots.
|
CARTOGRAPHY |
Cartography inventory with 2 CRAFTING slots, and 1 RESULT slot.
|
CHEST |
A chest inventory, with 0, 9, 18, 27, 36, 45, or 54 slots of type
CONTAINER.
|
CRAFTING |
A player's crafting inventory, with 4 CRAFTING slots and a RESULT slot.
|
CREATIVE |
The creative mode inventory, with only 9 QUICKBAR slots and nothing
else.
|
DISPENSER |
A dispenser inventory, with 9 slots of type CONTAINER.
|
DROPPER |
A dropper inventory, with 9 slots of type CONTAINER.
|
ENCHANTING |
An enchantment table inventory, with two CRAFTING slots and three
enchanting buttons.
|
ENDER_CHEST |
The ender chest inventory, with 27 slots.
|
FURNACE |
A furnace inventory, with a RESULT slot, a CRAFTING slot, and a FUEL
slot.
|
GRINDSTONE |
Grindstone inventory with 2 CRAFTING slots, and 1 RESULT slot.
|
HOPPER |
A hopper inventory, with 5 slots of type CONTAINER.
|
LECTERN |
A lectern inventory, with 1 BOOK slot.
|
LOOM |
Loom inventory, with 3 CRAFTING slots, and 1 RESULT slot.
|
MERCHANT |
The merchant inventory, with 2 CRAFTING slots, and 1 RESULT slot.
|
PLAYER |
A player's inventory, with 9 QUICKBAR slots, 27 CONTAINER slots, 4 ARMOR
slots and 1 offhand slot.
|
SHULKER_BOX |
A shulker box inventory, with 27 slots of type CONTAINER.
|
SMOKER |
A smoker inventory, with a RESULT slot, a CRAFTING slot, and a FUEL slot.
|
STONECUTTER |
Stonecutter inventory with 1 CRAFTING slot, and 1 RESULT slot.
|
WORKBENCH |
A workbench inventory, with 9 CRAFTING slots and a RESULT slot.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getDefaultSize() |
|
String |
getDefaultTitle() |
|
boolean |
isCreatable() |
Denotes that this InventoryType can be created via the normal
Bukkit.createInventory(org.bukkit.inventory.InventoryHolder, org.bukkit.event.inventory.InventoryType) methods. |
static InventoryType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static InventoryType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InventoryType CHEST
public static final InventoryType DISPENSER
public static final InventoryType DROPPER
public static final InventoryType FURNACE
public static final InventoryType WORKBENCH
public static final InventoryType CRAFTING
public static final InventoryType ENCHANTING
public static final InventoryType BREWING
public static final InventoryType PLAYER
public static final InventoryType CREATIVE
public static final InventoryType MERCHANT
public static final InventoryType ENDER_CHEST
public static final InventoryType ANVIL
public static final InventoryType BEACON
public static final InventoryType HOPPER
public static final InventoryType SHULKER_BOX
public static final InventoryType BARREL
public static final InventoryType BLAST_FURNACE
public static final InventoryType LECTERN
public static final InventoryType SMOKER
public static final InventoryType LOOM
public static final InventoryType CARTOGRAPHY
public static final InventoryType GRINDSTONE
public static final InventoryType STONECUTTER
public static InventoryType[] values()
for (InventoryType c : InventoryType.values()) System.out.println(c);
public static InventoryType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getDefaultSize()
@NotNull public String getDefaultTitle()
public boolean isCreatable()
Bukkit.createInventory(org.bukkit.inventory.InventoryHolder, org.bukkit.event.inventory.InventoryType)
methods.Copyright © 2019. All rights reserved.