Package net.minestom.server.inventory
Enum Class InventoryType
- All Implemented Interfaces:
Serializable
,Comparable<InventoryType>
,Constable
Represents a type of
Inventory
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.int
getSize()
int
static InventoryType
Returns the enum constant of this class with the specified name.static InventoryType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHEST_1_ROW
-
CHEST_2_ROW
-
CHEST_3_ROW
-
CHEST_4_ROW
-
CHEST_5_ROW
-
CHEST_6_ROW
-
WINDOW_3X3
-
CRAFTER_3X3
-
ANVIL
-
BEACON
-
BLAST_FURNACE
-
BREWING_STAND
-
CRAFTING
-
ENCHANTMENT
-
FURNACE
-
GRINDSTONE
-
HOPPER
-
LECTERN
-
LOOM
-
MERCHANT
-
SHULKER_BOX
-
SMITHING
-
SMOKER
-
CARTOGRAPHY
-
STONE_CUTTER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getWindowType
public int getWindowType() -
getSize
public int getSize() -
getAdditionalSlot
Deprecated.usegetSize()
-
getSize()