ClientboundRecipeBookSettingsPacket .java

net.minecraft.network.protocol.game.ClientboundRecipeBookSettingsPacket (record): members: bookSettings, handle, STREAM_CODEC, type. imports: PacketType.

net.minecraft.network.protocol.gamerecord23 linescommon920 B

Implements

API Surface (2)

PacketType<ClientboundRecipeBookSettingsPacket> type()
void handle(final ClientGamePacketListener listener)

Fields & Constants (1)

STREAM_CODEC

Same Package (197)

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ClientboundRecipeBookSettingsPacket.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.protocol.game;
2
3
import net.minecraft.network.FriendlyByteBuf;
4
import net.minecraft.network.codec.StreamCodec;
5
import net.minecraft.network.protocol.Packet;
6
import net.minecraft.network.protocol.PacketType;
7
import net.minecraft.stats.RecipeBookSettings;
8
9
public record ClientboundRecipeBookSettingsPacket(RecipeBookSettings bookSettings) implements Packet<ClientGamePacketListener> {
10
	public static final StreamCodec<FriendlyByteBuf, ClientboundRecipeBookSettingsPacket> STREAM_CODEC = StreamCodec.composite(
11
		RecipeBookSettings.STREAM_CODEC, ClientboundRecipeBookSettingsPacket::bookSettings, ClientboundRecipeBookSettingsPacket::new
12
	);
13
14
	@Override
15
	public PacketType<ClientboundRecipeBookSettingsPacket> type() {
16
		return GamePacketTypes.CLIENTBOUND_RECIPE_BOOK_SETTINGS;
17
	}
18
19
	public void handle(final ClientGamePacketListener listener) {
20
		listener.handleRecipeBookSettings(this);
21
	}
22
}
23

Decompiled Minecraft 26.3 source of ClientboundRecipeBookSettingsPacket (net/minecraft/network/protocol/game/ClientboundRecipeBookSettingsPacket.java) with Mojang official mappings, stored verbatim on the site.