Class ClientboundChangeDifficultyPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundChangeDifficultyPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundChangeDifficultyPacket(io.netty.buffer.ByteBuf in) ClientboundChangeDifficultyPacket(Difficulty difficulty, boolean difficultyLocked) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundChangeDifficultyPacketwithDifficulty(Difficulty difficulty) @NonNull ClientboundChangeDifficultyPacketwithDifficultyLocked(boolean difficultyLocked) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundChangeDifficultyPacket
public ClientboundChangeDifficultyPacket(io.netty.buffer.ByteBuf in) -
ClientboundChangeDifficultyPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getDifficulty
-
isDifficultyLocked
public boolean isDifficultyLocked() -
equals
-
canEqual
-
hashCode
-
toString
-
withDifficulty
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDifficultyLocked
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-