Contents
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<org.joml.Vector2i> position)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnique(int color, int radius, int radius2, CompletableFuture<org.joml.Vector2i> position) Creates an instance of aUniquerecord class.Unique(int color, int radius, CompletableFuture<org.joml.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.CompletableFuture<org.joml.Vector2i> 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
-
EMPTY_ARRAY
-
-
Constructor Details
-
Unique
-
Unique
public Unique(int color, int radius, int radius2, @Nonnull CompletableFuture<org.joml.Vector2i> position) 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
-
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. -
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
-