25 use GetTypeIdFromConstTrait;
27 public const ID = InventoryTransactionPacket::TYPE_MISMATCH;
29 protected function decodeData(ByteBufferReader $in) : void{
30 if(count($this->actions) > 0){
31 throw new PacketDecodeException(
"Mismatch transaction type should not have any actions associated with it, but got " . count($this->actions));
35 protected function encodeData(ByteBufferWriter $out) : void{
39 public static function new() : self{