45 int $traderActorUniqueId,
46 int $playerActorUniqueId,
49 bool $isEconomyTrading,
53 $result->windowId = $windowId;
54 $result->windowType = $windowType;
55 $result->windowSlotCount = $windowSlotCount;
56 $result->tradeTier = $tradeTier;
57 $result->traderActorUniqueId = $traderActorUniqueId;
58 $result->playerActorUniqueId = $playerActorUniqueId;
59 $result->displayName = $displayName;
60 $result->isV2Trading = $isV2Trading;
61 $result->isEconomyTrading = $isEconomyTrading;
67 $this->windowId = $in->getByte();
68 $this->windowType = $in->
getByte();
69 $this->windowSlotCount = $in->
getVarInt();
74 $this->isV2Trading = $in->
getBool();
75 $this->isEconomyTrading = $in->
getBool();
76 $this->offers =
new CacheableNbt($in->getNbtCompoundRoot());
80 $out->putByte($this->windowId);
81 $out->putByte($this->windowType);
84 $out->putActorUniqueId($this->traderActorUniqueId);
85 $out->putActorUniqueId($this->playerActorUniqueId);
86 $out->putString($this->displayName);
87 $out->putBool($this->isV2Trading);
88 $out->putBool($this->isEconomyTrading);
89 $out->put($this->offers->getEncodedNbt());