Record Class ChunkRequest
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.hytalegenerator.chunkgenerator.ChunkRequest
public record ChunkRequest(@Nonnull ChunkRequest.GeneratorProfile generatorProfile, @Nonnull ChunkRequest.Arguments arguments)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkRequest.ArgumentsThe field for theargumentsrecord component.private final ChunkRequest.GeneratorProfileThe field for thegeneratorProfilerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkRequest(ChunkRequest.GeneratorProfile generatorProfile, ChunkRequest.Arguments arguments) Creates an instance of aChunkRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorProfilerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
generatorProfile
The field for thegeneratorProfilerecord component. -
arguments
The field for theargumentsrecord component.
-
-
Constructor Details
-
ChunkRequest
public ChunkRequest(@Nonnull ChunkRequest.GeneratorProfile generatorProfile, @Nonnull ChunkRequest.Arguments arguments) Creates an instance of aChunkRequestrecord class.- Parameters:
generatorProfile- the value for thegeneratorProfilerecord componentarguments- the value for theargumentsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
generatorProfile
Returns the value of thegeneratorProfilerecord component.- Returns:
- the value of the
generatorProfilerecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-