Contents
Record Class ChunkRequest.Arguments
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.hytalegenerator.engine.chunkgenerator.ChunkRequest.Arguments
- Enclosing class:
ChunkRequest
public static record ChunkRequest.Arguments(int seed, long index, int x, int z, @Nullable LongPredicate stillNeeded, @Nullable it.unimi.dsi.fastutil.longs.Long2FloatFunction priority)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionArguments(int seed, long index, int x, int z, LongPredicate stillNeeded, it.unimi.dsi.fastutil.longs.Long2FloatFunction priority) Creates an instance of aArgumentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longindex()Returns the value of theindexrecord component.it.unimi.dsi.fastutil.longs.Long2FloatFunctionpriority()Returns the value of thepriorityrecord component.intseed()Returns the value of theseedrecord component.Returns the value of thestillNeededrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
Arguments
public Arguments(int seed, long index, int x, int z, @Nullable LongPredicate stillNeeded, @Nullable it.unimi.dsi.fastutil.longs.Long2FloatFunction priority) Creates an instance of aArgumentsrecord class.- Parameters:
seed- the value for theseedrecord componentindex- the value for theindexrecord componentx- the value for thexrecord componentz- the value for thezrecord componentstillNeeded- the value for thestillNeededrecord componentpriority- the value for thepriorityrecord 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. -
seed
public int seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
index
public long index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
stillNeeded
Returns the value of thestillNeededrecord component.- Returns:
- the value of the
stillNeededrecord component
-
priority
@Nullable public it.unimi.dsi.fastutil.longs.Long2FloatFunction priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-