Record Class UniqueClimateGenerator.Entry
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.climate.UniqueClimateGenerator.Entry
- Enclosing class:
UniqueClimateGenerator
public static record UniqueClimateGenerator.Entry(@Nonnull String zone, @Nonnull String parent, int color, int radius, @Nonnull Vector2i origin, int minDistance, int maxDistance, @Nonnull ClimateSearch.Rule rule)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.static final Stringstatic final UniqueClimateGenerator.Entry[]private final intThe field for themaxDistancerecord component.private final intThe field for theminDistancerecord component.private final Vector2iThe field for theoriginrecord component.private final StringThe field for theparentrecord component.private final intThe field for theradiusrecord component.private final ClimateSearch.RuleThe field for therulerecord component.private final StringThe field for thezonerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntry(String zone, String parent, int color, int radius, Vector2i origin, int minDistance, int maxDistance, ClimateSearch.Rule rule) Creates an instance of aEntryrecord 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.intReturns the value of themaxDistancerecord component.intReturns the value of theminDistancerecord component.origin()Returns the value of theoriginrecord component.parent()Returns the value of theparentrecord component.intradius()Returns the value of theradiusrecord component.rule()Returns the value of therulerecord 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. -
parent
The field for theparentrecord component. -
color
private final int colorThe field for thecolorrecord component. -
radius
private final int radiusThe field for theradiusrecord component. -
origin
The field for theoriginrecord component. -
minDistance
private final int minDistanceThe field for theminDistancerecord component. -
maxDistance
private final int maxDistanceThe field for themaxDistancerecord component. -
rule
The field for therulerecord component. -
EMPTY_ARRAY
-
DEFAULT_PARENT
- See Also:
-
-
Constructor Details
-
Entry
public Entry(@Nonnull String zone, @Nonnull String parent, int color, int radius, @Nonnull Vector2i origin, int minDistance, int maxDistance, @Nonnull ClimateSearch.Rule rule) Creates an instance of aEntryrecord class.- Parameters:
zone- the value for thezonerecord componentparent- the value for theparentrecord componentcolor- the value for thecolorrecord componentradius- the value for theradiusrecord componentorigin- the value for theoriginrecord componentminDistance- the value for theminDistancerecord componentmaxDistance- the value for themaxDistancerecord componentrule- the value for therulerecord 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. 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
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
radius
public int radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
minDistance
public int minDistance()Returns the value of theminDistancerecord component.- Returns:
- the value of the
minDistancerecord component
-
maxDistance
public int maxDistance()Returns the value of themaxDistancerecord component.- Returns:
- the value of the
maxDistancerecord component
-
rule
Returns the value of therulerecord component.- Returns:
- the value of the
rulerecord component
-