Class InventoryTransactionUtils
java.lang.Object
org.cloudburstmc.server.network.protocol.types.InventoryTransactionUtils
- Author:
- CreeperFace
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intAny client-side window dropping its contents when the player closes itstatic intFake window IDs for the SOURCE_TODO type (99999)static intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsCraftingPart(com.nukkitx.protocol.bedrock.packet.InventoryTransactionPacket packet)static InventoryActioncreateInventoryAction(CloudPlayer player, com.nukkitx.protocol.bedrock.data.inventory.InventoryActionData inventoryActionData)
-
Field Details
-
SOURCE_CONTAINER
public static final int SOURCE_CONTAINER- See Also:
- Constant Field Values
-
SOURCE_WORLD
public static final int SOURCE_WORLD- See Also:
- Constant Field Values
-
SOURCE_CREATIVE
public static final int SOURCE_CREATIVE- See Also:
- Constant Field Values
-
SOURCE_TODO
public static final int SOURCE_TODO- See Also:
- Constant Field Values
-
SOURCE_CRAFT_SLOT
public static final int SOURCE_CRAFT_SLOT- See Also:
- Constant Field Values
-
SOURCE_TYPE_CRAFTING_ADD_INGREDIENT
public static final int SOURCE_TYPE_CRAFTING_ADD_INGREDIENTFake window IDs for the SOURCE_TODO type (99999)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.
- See Also:
- Constant Field Values
-
SOURCE_TYPE_CRAFTING_REMOVE_INGREDIENT
public static final int SOURCE_TYPE_CRAFTING_REMOVE_INGREDIENT- See Also:
- Constant Field Values
-
SOURCE_TYPE_CRAFTING_RESULT
public static final int SOURCE_TYPE_CRAFTING_RESULT- See Also:
- Constant Field Values
-
SOURCE_TYPE_CRAFTING_USE_INGREDIENT
public static final int SOURCE_TYPE_CRAFTING_USE_INGREDIENT- See Also:
- Constant Field Values
-
SOURCE_TYPE_ANVIL_INPUT
public static final int SOURCE_TYPE_ANVIL_INPUT- See Also:
- Constant Field Values
-
SOURCE_TYPE_ANVIL_MATERIAL
public static final int SOURCE_TYPE_ANVIL_MATERIAL- See Also:
- Constant Field Values
-
SOURCE_TYPE_ANVIL_RESULT
public static final int SOURCE_TYPE_ANVIL_RESULT- See Also:
- Constant Field Values
-
SOURCE_TYPE_ANVIL_OUTPUT
public static final int SOURCE_TYPE_ANVIL_OUTPUT- See Also:
- Constant Field Values
-
SOURCE_TYPE_ENCHANT_INPUT
public static final int SOURCE_TYPE_ENCHANT_INPUT- See Also:
- Constant Field Values
-
SOURCE_TYPE_ENCHANT_MATERIAL
public static final int SOURCE_TYPE_ENCHANT_MATERIAL- See Also:
- Constant Field Values
-
SOURCE_TYPE_ENCHANT_OUTPUT
public static final int SOURCE_TYPE_ENCHANT_OUTPUT- See Also:
- Constant Field Values
-
SOURCE_TYPE_TRADING_INPUT_1
public static final int SOURCE_TYPE_TRADING_INPUT_1- See Also:
- Constant Field Values
-
SOURCE_TYPE_TRADING_INPUT_2
public static final int SOURCE_TYPE_TRADING_INPUT_2- See Also:
- Constant Field Values
-
SOURCE_TYPE_TRADING_USE_INPUTS
public static final int SOURCE_TYPE_TRADING_USE_INPUTS- See Also:
- Constant Field Values
-
SOURCE_TYPE_TRADING_OUTPUT
public static final int SOURCE_TYPE_TRADING_OUTPUT- See Also:
- Constant Field Values
-
SOURCE_TYPE_BEACON
public static final int SOURCE_TYPE_BEACON- See Also:
- Constant Field Values
-
SOURCE_TYPE_CONTAINER_DROP_CONTENTS
public static final int SOURCE_TYPE_CONTAINER_DROP_CONTENTSAny client-side window dropping its contents when the player closes it- See Also:
- Constant Field Values
-
USE_ITEM_ACTION_CLICK_BLOCK
public static final int USE_ITEM_ACTION_CLICK_BLOCK- See Also:
- Constant Field Values
-
USE_ITEM_ACTION_CLICK_AIR
public static final int USE_ITEM_ACTION_CLICK_AIR- See Also:
- Constant Field Values
-
USE_ITEM_ACTION_BREAK_BLOCK
public static final int USE_ITEM_ACTION_BREAK_BLOCK- See Also:
- Constant Field Values
-
RELEASE_ITEM_ACTION_RELEASE
public static final int RELEASE_ITEM_ACTION_RELEASE- See Also:
- Constant Field Values
-
RELEASE_ITEM_ACTION_CONSUME
public static final int RELEASE_ITEM_ACTION_CONSUME- See Also:
- Constant Field Values
-
USE_ITEM_ON_ENTITY_ACTION_INTERACT
public static final int USE_ITEM_ON_ENTITY_ACTION_INTERACT- See Also:
- Constant Field Values
-
USE_ITEM_ON_ENTITY_ACTION_ATTACK
public static final int USE_ITEM_ON_ENTITY_ACTION_ATTACK- See Also:
- Constant Field Values
-
ACTION_MAGIC_SLOT_DROP_ITEM
public static final int ACTION_MAGIC_SLOT_DROP_ITEM- See Also:
- Constant Field Values
-
ACTION_MAGIC_SLOT_PICKUP_ITEM
public static final int ACTION_MAGIC_SLOT_PICKUP_ITEM- See Also:
- Constant Field Values
-
ACTION_MAGIC_SLOT_CREATIVE_DELETE_ITEM
public static final int ACTION_MAGIC_SLOT_CREATIVE_DELETE_ITEM- See Also:
- Constant Field Values
-
ACTION_MAGIC_SLOT_CREATIVE_CREATE_ITEM
public static final int ACTION_MAGIC_SLOT_CREATIVE_CREATE_ITEM- See Also:
- Constant Field Values
-
-
Constructor Details
-
InventoryTransactionUtils
public InventoryTransactionUtils()
-
-
Method Details
-
containsCraftingPart
public static boolean containsCraftingPart(com.nukkitx.protocol.bedrock.packet.InventoryTransactionPacket packet) -
createInventoryAction
public static InventoryAction createInventoryAction(CloudPlayer player, com.nukkitx.protocol.bedrock.data.inventory.InventoryActionData inventoryActionData)
-