ServerboundSelectKnownPacks 0x07
ServerboundSelectKnownPacks: Minecraft 26.3 packet (0x07 Configuration serverbound). Wire name 'select_known_packs', fields: knownPacks, handled
Protocol slots (1)
| ID | dec | State | Direction | Registry |
|---|---|---|---|---|
| 0x07 | 7 | CONFIGURATION | Serverbound | ConfigurationPacketTypes.SERVERBOUND_SELECT_KNOWN_PACKS: "select_known_packs" |
Packet ids are positional: the id is the index of the addPacket call in the protocol builder (see ProtocolInfoBuilder.listPackets). Ids change between game versions.
Wire fields (1)
| Field | Type |
|---|---|
knownPacks | List<KnownPack> |
Fields are the components of the packet record.
Stream codec
static final StreamCodec<ByteBuf, ServerboundSelectKnownPacks> STREAM_CODEC = StreamCodec.composite( KnownPack.STREAM_CODEC.apply(ByteBufCodecs.list(64)), ServerboundSelectKnownPacks::knownPacks, ServModern packets serialize through StreamCodecs instead of read/write methods.
Handling
Resolved on the ServerConfigurationPacketListener packet-listener interface by void handleSelectKnownPacks(ServerboundSelectKnownPacks serverboundselectknownpacks). The implementation in the game is ServerConfigurationPacketListenerImpl.
Full Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |