ClientboundRecipeBookRemovePacket .java

net.minecraft.network.protocol.game.ClientboundRecipeBookRemovePacket (record, 25 lines): members: recipes, handle, STREAM_CODEC, type. imports: ByteBuf.

net.minecraft.network.protocol.gamerecord25 linescommon994 B

Implements

API Surface (2)

PacketType<ClientboundRecipeBookRemovePacket> 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

ClientboundRecipeBookRemovePacket.java25 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.protocol.game;
2
3
import io.netty.buffer.ByteBuf;
4
import java.util.List;
5
import net.minecraft.network.codec.ByteBufCodecs;
6
import net.minecraft.network.codec.StreamCodec;
7
import net.minecraft.network.protocol.Packet;
8
import net.minecraft.network.protocol.PacketType;
9
import net.minecraft.world.item.crafting.display.RecipeDisplayId;
10
11
public record ClientboundRecipeBookRemovePacket(List<RecipeDisplayId> recipes) implements Packet<ClientGamePacketListener> {
12
	public static final StreamCodec<ByteBuf, ClientboundRecipeBookRemovePacket> STREAM_CODEC = StreamCodec.composite(
13
		RecipeDisplayId.STREAM_CODEC.apply(ByteBufCodecs.list()), ClientboundRecipeBookRemovePacket::recipes, ClientboundRecipeBookRemovePacket::new
14
	);
15
16
	@Override
17
	public PacketType<ClientboundRecipeBookRemovePacket> type() {
18
		return GamePacketTypes.CLIENTBOUND_RECIPE_BOOK_REMOVE;
19
	}
20
21
	public void handle(final ClientGamePacketListener listener) {
22
		listener.handleRecipeBookRemove(this);
23
	}
24
}
25

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