public class InventoryTransactionUtils extends Object
| Constructor and Description |
|---|
InventoryTransactionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsCraftingPart(com.nukkitx.protocol.bedrock.packet.InventoryTransactionPacket packet) |
static InventoryAction |
createInventoryAction(Player player,
com.nukkitx.protocol.bedrock.data.inventory.InventoryActionData inventoryActionData) |
public static final int SOURCE_CONTAINER
public static final int SOURCE_WORLD
public static final int SOURCE_CREATIVE
public static final int SOURCE_TODO
public static final int SOURCE_CRAFT_SLOT
public static final int SOURCE_TYPE_CRAFTING_ADD_INGREDIENT
These identifiers are used for inventory source types which are not currently implemented server-side in MCPE. As a general rule of thumb, anything that doesn't have a permanent inventory is client-side. These types are to allow servers to track what is going on in client-side windows.
Expect these to change in the future.
public static final int SOURCE_TYPE_CRAFTING_REMOVE_INGREDIENT
public static final int SOURCE_TYPE_CRAFTING_RESULT
public static final int SOURCE_TYPE_CRAFTING_USE_INGREDIENT
public static final int SOURCE_TYPE_ANVIL_INPUT
public static final int SOURCE_TYPE_ANVIL_MATERIAL
public static final int SOURCE_TYPE_ANVIL_RESULT
public static final int SOURCE_TYPE_ANVIL_OUTPUT
public static final int SOURCE_TYPE_ENCHANT_INPUT
public static final int SOURCE_TYPE_ENCHANT_MATERIAL
public static final int SOURCE_TYPE_ENCHANT_OUTPUT
public static final int SOURCE_TYPE_TRADING_INPUT_1
public static final int SOURCE_TYPE_TRADING_INPUT_2
public static final int SOURCE_TYPE_TRADING_USE_INPUTS
public static final int SOURCE_TYPE_TRADING_OUTPUT
public static final int SOURCE_TYPE_BEACON
public static final int SOURCE_TYPE_CONTAINER_DROP_CONTENTS
public static final int USE_ITEM_ACTION_CLICK_BLOCK
public static final int USE_ITEM_ACTION_CLICK_AIR
public static final int USE_ITEM_ACTION_BREAK_BLOCK
public static final int RELEASE_ITEM_ACTION_RELEASE
public static final int RELEASE_ITEM_ACTION_CONSUME
public static final int USE_ITEM_ON_ENTITY_ACTION_INTERACT
public static final int USE_ITEM_ON_ENTITY_ACTION_ATTACK
public static final int ACTION_MAGIC_SLOT_DROP_ITEM
public static final int ACTION_MAGIC_SLOT_PICKUP_ITEM
public static final int ACTION_MAGIC_SLOT_CREATIVE_DELETE_ITEM
public static final int ACTION_MAGIC_SLOT_CREATIVE_CREATE_ITEM
public static boolean containsCraftingPart(com.nukkitx.protocol.bedrock.packet.InventoryTransactionPacket packet)
public static InventoryAction createInventoryAction(Player player, com.nukkitx.protocol.bedrock.data.inventory.InventoryActionData inventoryActionData)
Copyright © 2020. All rights reserved.