Record Class SetFlySpeedMessage
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.client.SetFlySpeedMessage
- All Implemented Interfaces:
net.minestom.server.network.packet.client.ClientPacket
public record SetFlySpeedMessage(float flySpeed)
extends Record
implements net.minestom.server.network.packet.client.ClientPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<SetFlySpeedMessage> -
Constructor Summary
ConstructorsConstructorDescriptionSetFlySpeedMessage(float flySpeed) Creates an instance of aSetFlySpeedMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatflySpeed()Returns the value of theflySpeedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
SetFlySpeedMessage
public SetFlySpeedMessage(float flySpeed) Creates an instance of aSetFlySpeedMessagerecord class.- Parameters:
flySpeed- the value for theflySpeedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
flySpeed
public float flySpeed()Returns the value of theflySpeedrecord component.- Returns:
- the value of the
flySpeedrecord component
-