Package cn.nukkit.network.protocol.types
Record Class PropertySyncData
java.lang.Object
java.lang.Record
cn.nukkit.network.protocol.types.PropertySyncData
@PowerNukkitXOnly
@Since("1.19.40-r1")
public record PropertySyncData(int[] intProperties, float[] floatProperties)
extends Record
-
Constructor Summary
ConstructorDescriptionPropertySyncData
(int[] intProperties, float[] floatProperties) Creates an instance of aPropertySyncData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.float[]
Returns the value of thefloatProperties
record component.final int
hashCode()
Returns a hash code value for this object.int[]
Returns the value of theintProperties
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PropertySyncData
public PropertySyncData(int[] intProperties, float[] floatProperties) Creates an instance of aPropertySyncData
record class.- Parameters:
intProperties
- the value for theintProperties
record componentfloatProperties
- the value for thefloatProperties
record 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 withObjects::equals(Object,Object)
. -
intProperties
public int[] intProperties()Returns the value of theintProperties
record component.- Returns:
- the value of the
intProperties
record component
-
floatProperties
public float[] floatProperties()Returns the value of thefloatProperties
record component.- Returns:
- the value of the
floatProperties
record component
-