minecraft_25w45a_unobfuscated/net/minecraft/network/protocol/configuration/ServerboundAcceptCodeOfConductPacket.java
2025-11-24 22:52:51 +03:00

32 lines
1.1 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* io.netty.buffer.ByteBuf
*/
package net.minecraft.network.protocol.configuration;
import io.netty.buffer.ByteBuf;
import net.minecraft.network.codec.StreamCodec;
import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.PacketType;
import net.minecraft.network.protocol.configuration.ConfigurationPacketTypes;
import net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener;
public record ServerboundAcceptCodeOfConductPacket() implements Packet<ServerConfigurationPacketListener>
{
public static final ServerboundAcceptCodeOfConductPacket INSTANCE = new ServerboundAcceptCodeOfConductPacket();
public static final StreamCodec<ByteBuf, ServerboundAcceptCodeOfConductPacket> STREAM_CODEC = StreamCodec.unit(INSTANCE);
@Override
public PacketType<ServerboundAcceptCodeOfConductPacket> type() {
return ConfigurationPacketTypes.SERVERBOUND_ACCEPT_CODE_OF_CONDUCT;
}
@Override
public void handle(ServerConfigurationPacketListener listener) {
listener.handleAcceptCodeOfConduct(this);
}
}