Class ClientboundTickingStatePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundTickingStatePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundTickingStatePacket(float tickRate, boolean isFrozen) ClientboundTickingStatePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatinthashCode()booleanisFrozen()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundTickingStatePacketwithFrozen(boolean isFrozen) @NonNull ClientboundTickingStatePacketwithTickRate(float tickRate) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ClientboundTickingStatePacket
-
ClientboundTickingStatePacket
public ClientboundTickingStatePacket(float tickRate, boolean isFrozen)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getTickRate
public float getTickRate() -
isFrozen
public boolean isFrozen() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withTickRate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFrozen
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-