48 $this->eventId = $in->getVarInt();
49 $offset = $in->getOffset();
51 $this->eventData = (
new NetworkNbtSerializer())->readHeadless($in->getBuffer(), NBT::TAG_Compound, $offset);
53 throw PacketDecodeException::wrap($e);
55 $in->setOffset($offset);