57 $this->requestId = $in->readLegacyItemStackRequestId();
58 $this->requestChangedSlots = [];
59 if($this->requestId !== 0){
61 $this->requestChangedSlots[] = InventoryTransactionChangedSlotsHack::read($in);
67 $this->trData = match($transactionType){
76 $this->trData->decode($in);
80 $out->writeLegacyItemStackRequestId($this->requestId);
81 if($this->requestId !== 0){
83 foreach($this->requestChangedSlots as $changedSlots){
84 $changedSlots->write($out);
90 $this->trData->encode($out);