Record Class ChunkRequest.Arguments
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.hytalegenerator.chunkgenerator.ChunkRequest.Arguments
- Enclosing class:
ChunkRequest
public static record ChunkRequest.Arguments(int seed, long index, int x, int z, @Nullable LongPredicate stillNeeded)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theindexrecord component.private final intThe field for theseedrecord component.private final LongPredicateThe field for thestillNeededrecord component.private final intThe field for thexrecord component.private final intThe field for thezrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionArguments(int seed, long index, int x, int z, LongPredicate stillNeeded) 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.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.
-
Field Details
-
seed
private final int seedThe field for theseedrecord component. -
index
private final long indexThe field for theindexrecord component. -
x
private final int xThe field for thexrecord component. -
z
private final int zThe field for thezrecord component. -
stillNeeded
The field for thestillNeededrecord component.
-
-
Constructor Details
-
Arguments
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 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 '=='. -
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
-