Class UpdateDifficultyLockC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.UpdateDifficultyLockC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class UpdateDifficultyLockC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private boolean
difficultyLocked
-
Constructor Summary
Constructors Constructor Description UpdateDifficultyLockC2SPacket()
UpdateDifficultyLockC2SPacket(boolean difficultyLocked)
-
Method Summary
Modifier and Type Method Description void
apply(ServerPlayPacketListener serverPlayPacketListener)
boolean
isDifficultyLocked()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
difficultyLocked
private boolean difficultyLocked
-
-
Constructor Details
-
UpdateDifficultyLockC2SPacket
public UpdateDifficultyLockC2SPacket() -
UpdateDifficultyLockC2SPacket
@Environment(CLIENT) public UpdateDifficultyLockC2SPacket(boolean difficultyLocked)
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
-
read
- Specified by:
read
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
isDifficultyLocked
public boolean isDifficultyLocked()
-