Record Class Zone.UniqueEntry
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.Zone.UniqueEntry
- Enclosing class:
Zone
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.static final Zone.UniqueEntry[]private final intThe field for thepaddingrecord component.private final int[]The field for theparentrecord component.private final intThe field for theradiusrecord component.private final ZoneThe field for thezonerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUniqueEntry(Zone zone, int color, int[] parent, int radius, int padding) Creates an instance of aUniqueEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmatchesParent(int color) intpadding()Returns the value of thepaddingrecord component.int[]parent()Returns the value of theparentrecord component.intradius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Field Details
-
zone
The field for thezonerecord component. -
color
private final int colorThe field for thecolorrecord component. -
parent
private final int[] parentThe field for theparentrecord component. -
radius
private final int radiusThe field for theradiusrecord component. -
padding
private final int paddingThe field for thepaddingrecord component. -
EMPTY_ARRAY
-
-
Constructor Details
-
UniqueEntry
Creates an instance of aUniqueEntryrecord class.- Parameters:
zone- the value for thezonerecord componentcolor- the value for thecolorrecord componentparent- the value for theparentrecord componentradius- the value for theradiusrecord componentpadding- the value for thepaddingrecord component
-
-
Method Details
-
matchesParent
public boolean matchesParent(int color) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
zone
Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
parent
public int[] parent()Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
radius
public int radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
padding
public int padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-