net.minecraft.network.protocol.game

public class ClientboundChangeDifficultyPacket

implements Packet<ClientGamePacketListener>

aby
net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket
net.minecraft.class_2632
net.minecraft.network.packet.s2c.play.DifficultyS2CPacket
net.minecraft.network.protocol.game.PacketPlayOutServerDifficulty

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
a(vl arg0)
write(FriendlyByteBuf arg0)
method_55862(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<ClientboundChangeDifficultyPacket>
a()
type()
method_65080()
getPacketType()
public void
a(abl arg0)
handle(ClientGamePacketListener arg0)
method_11341(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public boolean
b()
isLocked()
method_11340()
isDifficultyLocked()
public Difficulty
e()
getDifficulty()
method_11342()
getDifficulty()