Contents
Record Class Zone.UniqueEntry
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.Zone.UniqueEntry
- Record Components:
zone- The zone the unique entry belongs to.color- The color identifier of the unique entry.parent- The parent colors that can spawn this unique entry.radius- The minimum distance between two instances of this unique entry.padding- The padding around the unique entry.
- Enclosing class:
Zone
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Zone.UniqueEntry[]An empty array of unique entries. -
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) Determines whether the given color matches any of the parent colors.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
-
EMPTY_ARRAY
An empty array of unique entries.
-
-
Constructor Details
-
UniqueEntry
Creates an instance of aUniqueEntryrecord class.
-
-
Method Details
-
matchesParent
public boolean matchesParent(int color) Determines whether the given color matches any of the parent colors.- Parameters:
color- The color to check against the parent colors.- Returns:
trueif the color matches any parent color,falseotherwise.
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
zone
-
color
-
parent
-
radius
-
padding
-