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, net.minestom.server.network.packet.client.ClientPacket.Play, net.minestom.server.network.packet.Packet
public record SetFlySpeedMessage(float flySpeed)
extends Record
implements net.minestom.server.network.packet.client.ClientPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.network.packet.client.ClientPacket
net.minestom.server.network.packet.client.ClientPacket.Configuration, net.minestom.server.network.packet.client.ClientPacket.Handshake, net.minestom.server.network.packet.client.ClientPacket.Login, net.minestom.server.network.packet.client.ClientPacket.Play, net.minestom.server.network.packet.client.ClientPacket.Status -
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
-
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. -
flySpeed
public float flySpeed()Returns the value of theflySpeedrecord component.- Returns:
- the value of the
flySpeedrecord component
-