ServerboundAcceptCodeOfConductPacket .java

net.minecraft.network.protocol.configuration.ServerboundAcceptCodeOfConductPacket (record, 21 lines): members: INSTANCE, handle, STREAM_CODEC, type.

net.minecraft.network.protocol.configurationrecord21 linescommon849 B

Implements

API Surface (2)

PacketType<ServerboundAcceptCodeOfConductPacket> type()
void handle(final ServerConfigurationPacketListener listener)

Fields & Constants (2)

INSTANCE
STREAM_CODEC

Code Graph: Dependencies (4)

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

Full Source

ServerboundAcceptCodeOfConductPacket.java21 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.protocol.configuration;
2
3
import io.netty.buffer.ByteBuf;
4
import net.minecraft.network.codec.StreamCodec;
5
import net.minecraft.network.protocol.Packet;
6
import net.minecraft.network.protocol.PacketType;
7
8
public record ServerboundAcceptCodeOfConductPacket() implements Packet<ServerConfigurationPacketListener> {
9
	public static final ServerboundAcceptCodeOfConductPacket INSTANCE = new ServerboundAcceptCodeOfConductPacket();
10
	public static final StreamCodec<ByteBuf, ServerboundAcceptCodeOfConductPacket> STREAM_CODEC = StreamCodec.unit(INSTANCE);
11
12
	@Override
13
	public PacketType<ServerboundAcceptCodeOfConductPacket> type() {
14
		return ConfigurationPacketTypes.SERVERBOUND_ACCEPT_CODE_OF_CONDUCT;
15
	}
16
17
	public void handle(final ServerConfigurationPacketListener listener) {
18
		listener.handleAcceptCodeOfConduct(this);
19
	}
20
}
21

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