public class DifficultyS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private Difficulty |
difficulty |
private boolean |
difficultyLocked |
Constructor and Description |
---|
DifficultyS2CPacket() |
DifficultyS2CPacket(Difficulty difficulty,
boolean difficultyLocked) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Difficulty |
getDifficulty() |
boolean |
isDifficultyLocked() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private Difficulty difficulty
private boolean difficultyLocked
public DifficultyS2CPacket()
public DifficultyS2CPacket(Difficulty difficulty, boolean difficultyLocked)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
@Environment(value=CLIENT) public boolean isDifficultyLocked()
@Environment(value=CLIENT) public Difficulty getDifficulty()