Contents
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 org.joml.Vector2i origin, int minDistance, int maxDistance, @Nonnull ClimateSearch.Rule rule)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntry(String zone, String parent, int color, int radius, org.joml.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.org.joml.Vector2iorigin()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
-
EMPTY_ARRAY
-
DEFAULT_PARENT
- See Also:
-
-
Constructor Details
-
Entry
public Entry(@Nonnull String zone, @Nonnull String parent, int color, int radius, @Nonnull org.joml.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
-
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
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
@Nonnull public org.joml.Vector2i 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
-