net.minecraft.network.protocol.game

public class ClientboundChangeDifficultyPacket

implements Packet<ClientGamePacketListener>

ach
net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket
net.minecraft.class_2632
net.minecraft.network.packet.s2c.play.DifficultyS2CPacket
net.minecraft.src.C_5048_
net.minecraft.network.protocol.game.PacketPlayOutServerDifficulty

Field summary

Modifier and TypeField
public static final StreamCodec<FriendlyByteBuf, ClientboundChangeDifficultyPacket>
a
STREAM_CODEC
field_47907
CODEC
f_316793_
private final Difficulty
b
difficulty
field_12090
difficulty
f_131805_
private final boolean
c
locked
field_12091
difficultyLocked
f_131806_

Constructor summary

ModifierConstructor
public (Difficulty difficulty, boolean difficultyLocked)
private (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(vw arg0)
write(FriendlyByteBuf arg0)
method_55862(class_2540 arg0)
write(PacketByteBuf buf)
m_131818_(C_4983_ arg0)
public PacketType<ClientboundChangeDifficultyPacket>
a()
type()
method_55846()
getPacketId()
m_5779_()
public void
a(abu arg0)
handle(ClientGamePacketListener arg0)
method_11341(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
m_5797_(C_5031_ arg0)
public boolean
b()
isLocked()
method_11340()
isDifficultyLocked()
m_131817_()
public Difficulty
e()
getDifficulty()
method_11342()
getDifficulty()
m_131820_()