public enum InventoryTransactionType extends Enum<InventoryTransactionType>
| Enum Constant and Description |
|---|
ITEM_RELEASE |
ITEM_USE |
ITEM_USE_ON_ENTITY |
MISMATCH |
NORMAL |
| Modifier and Type | Method and Description |
|---|---|
com.nukkitx.protocol.bedrock.packet.InventoryTransactionPacket.Type |
toNetwork() |
static InventoryTransactionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InventoryTransactionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InventoryTransactionType NORMAL
public static final InventoryTransactionType MISMATCH
public static final InventoryTransactionType ITEM_USE
public static final InventoryTransactionType ITEM_USE_ON_ENTITY
public static final InventoryTransactionType ITEM_RELEASE
public static InventoryTransactionType[] values()
for (InventoryTransactionType c : InventoryTransactionType.values()) System.out.println(c);
public static InventoryTransactionType 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 com.nukkitx.protocol.bedrock.packet.InventoryTransactionPacket.Type toNetwork()
Copyright © 2017–2019 NukkitX. All rights reserved.