Record Class UniqueClimateGenerator.Unique
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.climate.UniqueClimateGenerator.Unique
- Enclosing class:
UniqueClimateGenerator
public static record UniqueClimateGenerator.Unique(int color, int radius, int radius2, @Nonnull CompletableFuture<Vector2i> position)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.static final UniqueClimateGenerator.Unique[]private final CompletableFuture<Vector2i> The field for thepositionrecord component.private final intThe field for theradiusrecord component.private final intThe field for theradius2record component. -
Constructor Summary
ConstructorsConstructorDescriptionUnique(int color, int radius, int radius2, CompletableFuture<Vector2i> position) Creates an instance of aUniquerecord class.Unique(int color, int radius, CompletableFuture<Vector2i> position) -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.booleancontains(int x, int y) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.intradius()Returns the value of theradiusrecord component.intradius2()Returns the value of theradius2record component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
color
private final int colorThe field for thecolorrecord component. -
radius
private final int radiusThe field for theradiusrecord component. -
radius2
private final int radius2The field for theradius2record component. -
position
The field for thepositionrecord component. -
EMPTY_ARRAY
-
-
Constructor Details
-
Unique
-
Unique
Creates an instance of aUniquerecord class.- Parameters:
color- the value for thecolorrecord componentradius- the value for theradiusrecord componentradius2- the value for theradius2record componentposition- the value for thepositionrecord component
-
-
Method Details
-
contains
public boolean contains(int x, int y) -
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 '=='. -
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
-
radius2
public int radius2()Returns the value of theradius2record component.- Returns:
- the value of the
radius2record component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-