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