public enum NukkitInventoryType extends Enum<NukkitInventoryType>
| Enum Constant and Description |
|---|
ANVIL |
BREWING_STAND |
CHEST |
CRAFTING |
CURSOR |
DISPENSER |
DOUBLE_CHEST |
DROPPER |
ENCHANTMENT_TABLE |
ENDER_CHEST |
FURNACE |
HOPPER |
PLAYER |
WORKBENCH |
| Modifier and Type | Method and Description |
|---|---|
static NukkitInventoryType |
fromApi(InventoryType type) |
byte |
getId() |
int |
getSize() |
byte |
getType() |
InventoryType |
toApi() |
static NukkitInventoryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NukkitInventoryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NukkitInventoryType CHEST
public static final NukkitInventoryType ENDER_CHEST
public static final NukkitInventoryType DOUBLE_CHEST
public static final NukkitInventoryType PLAYER
public static final NukkitInventoryType FURNACE
public static final NukkitInventoryType CRAFTING
public static final NukkitInventoryType WORKBENCH
public static final NukkitInventoryType BREWING_STAND
public static final NukkitInventoryType ANVIL
public static final NukkitInventoryType ENCHANTMENT_TABLE
public static final NukkitInventoryType DISPENSER
public static final NukkitInventoryType DROPPER
public static final NukkitInventoryType HOPPER
public static final NukkitInventoryType CURSOR
public static NukkitInventoryType[] values()
for (NukkitInventoryType c : NukkitInventoryType.values()) System.out.println(c);
public static NukkitInventoryType 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 getSize()
public byte getId()
public byte getType()
public static NukkitInventoryType fromApi(InventoryType type)
public InventoryType toApi()
Copyright © 2017–2020 NukkitX. All rights reserved.