Record Class SetTickStatePacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.SetTickStatePacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Play
public record SetTickStatePacket(float tickRate, boolean isFrozen)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSetTickStatePacket(float tickRate, boolean isFrozen) Creates an instance of aSetTickStatePacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFrozen()Returns the value of theisFrozenrecord component.floattickRate()Returns the value of thetickRaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
SetTickStatePacket
public SetTickStatePacket(float tickRate, boolean isFrozen) Creates an instance of aSetTickStatePacketrecord class.- Parameters:
tickRate- the value for thetickRaterecord componentisFrozen- the value for theisFrozenrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
tickRate
public float tickRate()Returns the value of thetickRaterecord component.- Returns:
- the value of the
tickRaterecord component
-
isFrozen
public boolean isFrozen()Returns the value of theisFrozenrecord component.- Returns:
- the value of the
isFrozenrecord component
-