public static enum InventorySource.Type extends Enum<InventorySource.Type>
| Enum Constant and Description |
|---|
CONTAINER |
CREATIVE |
GLOBAL |
INVALID |
NON_IMPLEMENTED_TODO |
UNTRACKED_INTERACTION_UI |
WORLD_INTERACTION |
| Modifier and Type | Method and Description |
|---|---|
static InventorySource.Type |
byId(int id) |
int |
id() |
static InventorySource.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InventorySource.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InventorySource.Type INVALID
public static final InventorySource.Type CONTAINER
public static final InventorySource.Type GLOBAL
public static final InventorySource.Type WORLD_INTERACTION
public static final InventorySource.Type CREATIVE
public static final InventorySource.Type UNTRACKED_INTERACTION_UI
public static final InventorySource.Type NON_IMPLEMENTED_TODO
public static InventorySource.Type[] values()
for (InventorySource.Type c : InventorySource.Type.values()) System.out.println(c);
public static InventorySource.Type 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 static InventorySource.Type byId(int id)
public int id()
Copyright © 2018–2019 NukkitX. All rights reserved.