PocketMine-MP
5.35.1 git-e32e836dad793a3a3c8ddd8927c00e112b1e576a
Loading...
Searching...
No Matches
NormalTransactionData.php
1
<?php
2
3
/*
4
* This file is part of BedrockProtocol.
5
* Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6
*
7
* BedrockProtocol is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*/
12
13
declare(strict_types=1);
14
15
namespace
pocketmine\network\mcpe\protocol\types\inventory;
16
17
use pmmp\encoding\ByteBufferReader;
18
use pmmp\encoding\ByteBufferWriter;
19
use
pocketmine\network\mcpe\protocol\InventoryTransactionPacket
;
20
use pocketmine\network\mcpe\protocol\types\GetTypeIdFromConstTrait;
21
22
class
NormalTransactionData
extends
TransactionData
{
23
use GetTypeIdFromConstTrait;
24
25
public
const
ID = InventoryTransactionPacket::TYPE_NORMAL;
26
27
protected
function
decodeData
(ByteBufferReader $in) : void{
28
29
}
30
31
protected function encodeData(ByteBufferWriter $out) : void{
32
33
}
34
38
public static function
new
(array $actions) : self{
39
$result =
new
self();
40
$result->actions = $actions;
41
return
$result;
42
}
43
}
pocketmine\network\mcpe\protocol\InventoryTransactionPacket
Definition
InventoryTransactionPacket.php:33
pocketmine\network\mcpe\protocol\types\inventory\NormalTransactionData
Definition
NormalTransactionData.php:22
pocketmine\network\mcpe\protocol\types\inventory\NormalTransactionData\new
static new(array $actions)
Definition
NormalTransactionData.php:38
pocketmine\network\mcpe\protocol\types\inventory\NormalTransactionData\decodeData
decodeData(ByteBufferReader $in)
Definition
NormalTransactionData.php:27
pocketmine\network\mcpe\protocol\types\inventory\TransactionData
Definition
TransactionData.php:24
vendor
pocketmine
bedrock-protocol
src
types
inventory
NormalTransactionData.php
Generated by
1.12.0