net.minecraft.network.protocol.game

public class ServerboundChangeDifficultyPacket

implements Packet<ServerGamePacketListener>

agk
net.minecraft.network.protocol.game.ServerboundChangeDifficultyPacket
net.minecraft.class_4210
net.minecraft.network.packet.c2s.play.UpdateDifficultyC2SPacket
net.minecraft.network.protocol.game.PacketPlayInDifficultyChange

Field summary

Modifier and TypeField
public static final StreamCodec<FriendlyByteBuf, ServerboundChangeDifficultyPacket>
a
STREAM_CODEC
field_48176
CODEC
private final Difficulty
b
difficulty
field_18805
difficulty

Constructor summary

ModifierConstructor
public (Difficulty difficulty)
private (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(vl arg0)
write(FriendlyByteBuf arg0)
method_55962(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<ServerboundChangeDifficultyPacket>
a()
type()
method_65080()
getPacketType()
public void
a(agg arg0)
handle(ServerGamePacketListener arg0)
method_19477(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public Difficulty
b()
getDifficulty()
method_19478()
getDifficulty()