|
static | create (int $windowId, int $windowType, int $windowSlotCount, int $tradeTier, int $traderActorUniqueId, int $playerActorUniqueId, string $displayName, bool $isV2Trading, bool $isEconomyTrading, CacheableNbt $offers,) |
|
Definition at line 21 of file UpdateTradePacket.php.
◆ __get()
pocketmine\network\mcpe\protocol\DataPacket::__get |
( |
| $name | ) |
|
|
inherited |
◆ __set()
pocketmine\network\mcpe\protocol\DataPacket::__set |
( |
| $name, |
|
|
| $value ) |
|
inherited |
◆ canBeSentBeforeLogin()
pocketmine\network\mcpe\protocol\DataPacket::canBeSentBeforeLogin |
( |
| ) |
|
|
inherited |
◆ create()
static pocketmine\network\mcpe\protocol\UpdateTradePacket::create |
( |
int | $windowId, |
|
|
int | $windowType, |
|
|
int | $windowSlotCount, |
|
|
int | $tradeTier, |
|
|
int | $traderActorUniqueId, |
|
|
int | $playerActorUniqueId, |
|
|
string | $displayName, |
|
|
bool | $isV2Trading, |
|
|
bool | $isEconomyTrading, |
|
|
CacheableNbt | $offers ) |
|
static |
@generate-create-func @phpstan-param CacheableNbt<\pocketmine\nbt\tag\CompoundTag> $offers
Definition at line 40 of file UpdateTradePacket.php.
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer | $in | ) |
|
|
protectedinherited |
- Exceptions
-
BinaryDataException | |
PacketDecodeException | |
Definition at line 62 of file DataPacket.php.
◆ decodePayload()
pocketmine\network\mcpe\protocol\UpdateTradePacket::decodePayload |
( |
PacketSerializer | $in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\UpdateTradePacket::encodePayload |
( |
PacketSerializer | $out | ) |
|
|
protected |
◆ getName()
pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ handle()
Performs handling for this packet. Usually you'll want an appropriately named method in the session handler for this.
This method returns a bool to indicate whether the packet was handled or not. If the packet was unhandled, a debug message will be logged with a hexdump of the packet.
Typically this method returns the return value of the handler in the supplied PacketHandler. See other packets for examples how to implement this.
- Returns
- bool true if the packet was handled successfully, false if not.
- Exceptions
-
PacketDecodeException | if broken data was found in the packet |
Implements pocketmine\network\mcpe\protocol\Packet.
Definition at line 92 of file UpdateTradePacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $displayName
string pocketmine\network\mcpe\protocol\UpdateTradePacket::$displayName |
◆ $isEconomyTrading
bool pocketmine\network\mcpe\protocol\UpdateTradePacket::$isEconomyTrading |
◆ $isV2Trading
bool pocketmine\network\mcpe\protocol\UpdateTradePacket::$isV2Trading |
◆ $offers
CacheableNbt pocketmine\network\mcpe\protocol\UpdateTradePacket::$offers |
◆ $playerActorUniqueId
int pocketmine\network\mcpe\protocol\UpdateTradePacket::$playerActorUniqueId |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ $traderActorUniqueId
int pocketmine\network\mcpe\protocol\UpdateTradePacket::$traderActorUniqueId |
◆ $tradeTier
int pocketmine\network\mcpe\protocol\UpdateTradePacket::$tradeTier |
◆ $windowId
int pocketmine\network\mcpe\protocol\UpdateTradePacket::$windowId |
◆ $windowSlotCount
int pocketmine\network\mcpe\protocol\UpdateTradePacket::$windowSlotCount = 0 |
◆ $windowType
int pocketmine\network\mcpe\protocol\UpdateTradePacket::$windowType = WindowTypes::TRADING |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\UpdateTradePacket::NETWORK_ID = ProtocolInfo::UPDATE_TRADE_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: