Record Class ChunkPyramid
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.status.ChunkPyramid
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ChunkPyramid
static final ChunkPyramid
private final com.google.common.collect.ImmutableList
<ChunkStep> The field for thesteps
record component. -
Constructor Summary
ConstructorDescriptionChunkPyramid
(com.google.common.collect.ImmutableList<ChunkStep> steps) Creates an instance of aChunkPyramid
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getStepTo
(ChunkStatus p_347527_) final int
hashCode()
Returns a hash code value for this object.com.google.common.collect.ImmutableList
<ChunkStep> steps()
Returns the value of thesteps
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
steps
The field for thesteps
record component. -
GENERATION_PYRAMID
-
LOADING_PYRAMID
-
-
Constructor Details
-
ChunkPyramid
Creates an instance of aChunkPyramid
record class.- Parameters:
steps
- the value for thesteps
record component
-
-
Method Details
-
getStepTo
-
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)
. -
steps
Returns the value of thesteps
record component.- Returns:
- the value of the
steps
record component
-