Enum Class InventoryUpdate.Containers
java.lang.Object
java.lang.Enum<InventoryUpdate.Containers>
me.devnatan.inventoryframework.runtime.thirdparty.InventoryUpdate.Containers
- All Implemented Interfaces:
Serializable,Comparable<InventoryUpdate.Containers>,Constable
- Enclosing class:
- InventoryUpdate
An enum class for the necessaries containers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintGet the version in which the inventory container was added.String[]Get inventory types names of the inventory.Get the name of the inventory from Minecraft for older versions.Get the object from the container enum.static InventoryUpdate.ContainersgetType(org.bukkit.event.inventory.InventoryType type, int size) Get the container based on the current open inventory of the player.static InventoryUpdate.ContainersReturns the enum constant of this class with the specified name.static InventoryUpdate.Containers[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERIC_9X1
-
GENERIC_9X2
-
GENERIC_9X3
-
GENERIC_9X4
-
GENERIC_9X5
-
GENERIC_9X6
-
GENERIC_3X3
-
ANVIL
-
BEACON
-
BREWING_STAND
-
ENCHANTMENT
-
FURNACE
-
HOPPER
-
MERCHANT
-
SHULKER_BOX
-
BLAST_FURNACE
-
CRAFTING
-
GRINDSTONE
-
LECTERN
-
LOOM
-
SMOKER
-
CARTOGRAPHY_TABLE
-
STONECUTTER
-
SMITHING
-
-
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
-
getType
public static InventoryUpdate.Containers getType(org.bukkit.event.inventory.InventoryType type, int size) Get the container based on the current open inventory of the player.- Parameters:
type- type of inventory.- Returns:
- the container.
-
getObject
Get the object from the container enum.- Returns:
- a Containers object if 1.14+, otherwise, a String.
-
getContainerVersion
public int getContainerVersion()Get the version in which the inventory container was added.- Returns:
- the version.
-
getMinecraftName
Get the name of the inventory from Minecraft for older versions.- Returns:
- name of the inventory.
-
getInventoryTypesNames
Get inventory types names of the inventory.- Returns:
- bukkit names.
-