Record Class WorldBorderCenterPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.WorldBorderCenterPacket
- All Implemented Interfaces:
SendablePacket
,ServerPacket
,ServerPacket.Play
public record WorldBorderCenterPacket(double x, double z)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.network.packet.server.ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorldBorderCenterPacket
(double x, double z) Creates an instance of aWorldBorderCenterPacket
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.double
x()
Returns the value of thex
record component.double
z()
Returns the value of thez
record component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
WorldBorderCenterPacket
public WorldBorderCenterPacket(double x, double z) Creates an instance of aWorldBorderCenterPacket
record class.- Parameters:
x
- the value for thex
record componentz
- the value for thez
record 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 thecompare
method from their corresponding wrapper classes. -
x
public double x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
z
public double z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-