|
PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
|
Collaboration diagram for pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction:Public Member Functions | |
| read (ByteBufferReader $in) | |
| write (ByteBufferWriter $out) | |
Public Attributes | |
| int | $inventorySlot |
| ItemStackWrapper | $newItem |
| ItemStackWrapper | $oldItem |
| int | $sourceFlags = 0 |
| int | $sourceType |
| int | $windowId |
| const | ACTION_MAGIC_SLOT_CREATIVE_CREATE_ITEM = 1 |
| const | ACTION_MAGIC_SLOT_CREATIVE_DELETE_ITEM = 0 |
| const | ACTION_MAGIC_SLOT_DROP_ITEM = 0 |
| const | ACTION_MAGIC_SLOT_PICKUP_ITEM = 1 |
| const | SOURCE_CONTAINER = 0 |
| const | SOURCE_CREATIVE = 3 |
| const | SOURCE_TODO = 99999 |
| const | SOURCE_TYPE_ANVIL_OUTPUT = -13 |
| const | SOURCE_TYPE_ANVIL_RESULT = -12 |
| const | SOURCE_TYPE_BEACON = -24 |
| const | SOURCE_TYPE_CRAFTING_RESULT = -4 |
| const | SOURCE_TYPE_CRAFTING_USE_INGREDIENT = -5 |
| const | SOURCE_TYPE_ENCHANT_OUTPUT = -17 |
| const | SOURCE_TYPE_TRADING_INPUT_1 = -20 |
| const | SOURCE_TYPE_TRADING_INPUT_2 = -21 |
| const | SOURCE_TYPE_TRADING_OUTPUT = -23 |
| const | SOURCE_TYPE_TRADING_USE_INPUTS = -22 |
| const | SOURCE_WORLD = 2 |
Definition at line 24 of file NetworkInventoryAction.php.
| pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::read | ( | ByteBufferReader | $in | ) |
| DataDecodeException | |
| PacketDecodeException |
Definition at line 74 of file NetworkInventoryAction.php.
| pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::write | ( | ByteBufferWriter | $out | ) |
| int pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::$inventorySlot |
Definition at line 64 of file NetworkInventoryAction.php.
| ItemStackWrapper pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::$newItem |
Definition at line 66 of file NetworkInventoryAction.php.
| ItemStackWrapper pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::$oldItem |
Definition at line 65 of file NetworkInventoryAction.php.
| int pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::$sourceFlags = 0 |
Definition at line 63 of file NetworkInventoryAction.php.
| int pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::$sourceType |
Definition at line 61 of file NetworkInventoryAction.php.
| int pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::$windowId |
Definition at line 62 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::ACTION_MAGIC_SLOT_CREATIVE_CREATE_ITEM = 1 |
Definition at line 56 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::ACTION_MAGIC_SLOT_CREATIVE_DELETE_ITEM = 0 |
Definition at line 55 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::ACTION_MAGIC_SLOT_DROP_ITEM = 0 |
Definition at line 58 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::ACTION_MAGIC_SLOT_PICKUP_ITEM = 1 |
Definition at line 59 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_CONTAINER = 0 |
Definition at line 25 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_CREATIVE = 3 |
Definition at line 28 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TODO = 99999 |
Definition at line 29 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_ANVIL_OUTPUT = -13 |
Definition at line 44 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_ANVIL_RESULT = -12 |
Definition at line 43 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_BEACON = -24 |
Definition at line 53 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_CRAFTING_RESULT = -4 |
Fake 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.
Definition at line 40 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_CRAFTING_USE_INGREDIENT = -5 |
Definition at line 41 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_ENCHANT_OUTPUT = -17 |
Definition at line 46 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_TRADING_INPUT_1 = -20 |
Definition at line 48 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_TRADING_INPUT_2 = -21 |
Definition at line 49 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_TRADING_OUTPUT = -23 |
Definition at line 51 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_TYPE_TRADING_USE_INPUTS = -22 |
Definition at line 50 of file NetworkInventoryAction.php.
| const pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction::SOURCE_WORLD = 2 |
Definition at line 27 of file NetworkInventoryAction.php.