net.minecraft.network.protocol.game

public class ServerboundChangeDifficultyPacket

implements Packet<ServerGamePacketListener>

agm
net.minecraft.network.protocol.game.ServerboundChangeDifficultyPacket
net.minecraft.class_4210
net.minecraft.network.packet.c2s.play.UpdateDifficultyC2SPacket
net.minecraft.src.C_5148_
net.minecraft.network.protocol.game.PacketPlayInDifficultyChange

Field summary

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

Constructor summary

ModifierConstructor
public (Difficulty difficulty)
private (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(vw arg0)
write(FriendlyByteBuf arg0)
method_55962(class_2540 arg0)
write(PacketByteBuf buf)
m_133825_(C_4983_ arg0)
public PacketType<ServerboundChangeDifficultyPacket>
a()
type()
method_55846()
getPacketId()
m_5779_()
public void
a(agi arg0)
handle(ServerGamePacketListener arg0)
method_19477(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
m_5797_(C_5145_ arg0)
public Difficulty
b()
getDifficulty()
method_19478()
getDifficulty()
m_133824_()