19 lines
719 B
Java
19 lines
719 B
Java
|
package net.minecraft.network.protocol.game;
|
||
|
|
||
|
import io.netty.buffer.ByteBuf;
|
||
|
import net.minecraft.network.codec.StreamCodec;
|
||
|
import net.minecraft.network.protocol.Packet;
|
||
|
import net.minecraft.network.protocol.PacketType;
|
||
|
|
||
|
public record ServerboundPlayerLoadedPacket() implements Packet<ServerGamePacketListener> {
|
||
|
public static final StreamCodec<ByteBuf, ServerboundPlayerLoadedPacket> STREAM_CODEC = StreamCodec.unit(new ServerboundPlayerLoadedPacket());
|
||
|
|
||
|
@Override
|
||
|
public PacketType<ServerboundPlayerLoadedPacket> type() {
|
||
|
return GamePacketTypes.SERVERBOUND_PLAYER_LOADED;
|
||
|
}
|
||
|
|
||
|
public void handle(ServerGamePacketListener p_378308_) {
|
||
|
p_378308_.handleAcceptPlayerLoad(this);
|
||
|
}
|
||
|
}
|