Record Class ChunkStep
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.status.ChunkStep
public record ChunkStep(ChunkStatus targetStatus, ChunkDependencies directDependencies, ChunkDependencies accumulatedDependencies, int blockStateWriteRadius, ChunkStatusTask task)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkDependenciesThe field for theaccumulatedDependenciesrecord component.private final intThe field for theblockStateWriteRadiusrecord component.private final ChunkDependenciesThe field for thedirectDependenciesrecord component.private final ChunkStatusThe field for thetargetStatusrecord component.private final ChunkStatusTaskThe field for thetaskrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkStep(ChunkStatus targetStatus, ChunkDependencies directDependencies, ChunkDependencies accumulatedDependencies, int blockStateWriteRadius, ChunkStatusTask task) Creates an instance of aChunkSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccumulatedDependenciesrecord component.apply(WorldGenContext pWorldGenContext, StaticCache2D<GenerationChunkHolder> pCache, ChunkAccess pChunk) intReturns the value of theblockStateWriteRadiusrecord component.private ChunkAccesscompleteChunkGeneration(ChunkAccess pChunk, ProfiledDuration pDuration) Returns the value of thedirectDependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.intgetAccumulatedRadiusOf(ChunkStatus pStatus) final inthashCode()Returns a hash code value for this object.Returns the value of thetargetStatusrecord component.task()Returns the value of thetaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
targetStatus
The field for thetargetStatusrecord component. -
directDependencies
The field for thedirectDependenciesrecord component. -
accumulatedDependencies
The field for theaccumulatedDependenciesrecord component. -
blockStateWriteRadius
private final int blockStateWriteRadiusThe field for theblockStateWriteRadiusrecord component. -
task
The field for thetaskrecord component.
-
-
Constructor Details
-
ChunkStep
public ChunkStep(ChunkStatus targetStatus, ChunkDependencies directDependencies, ChunkDependencies accumulatedDependencies, int blockStateWriteRadius, ChunkStatusTask task) Creates an instance of aChunkSteprecord class.- Parameters:
targetStatus- the value for thetargetStatusrecord componentdirectDependencies- the value for thedirectDependenciesrecord componentaccumulatedDependencies- the value for theaccumulatedDependenciesrecord componentblockStateWriteRadius- the value for theblockStateWriteRadiusrecord componenttask- the value for thetaskrecord component
-
-
Method Details
-
getAccumulatedRadiusOf
-
apply
public CompletableFuture<ChunkAccess> apply(WorldGenContext pWorldGenContext, StaticCache2D<GenerationChunkHolder> pCache, ChunkAccess pChunk) -
completeChunkGeneration
private ChunkAccess completeChunkGeneration(ChunkAccess pChunk, @Nullable ProfiledDuration pDuration) -
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 '=='. -
targetStatus
Returns the value of thetargetStatusrecord component.- Returns:
- the value of the
targetStatusrecord component
-
directDependencies
Returns the value of thedirectDependenciesrecord component.- Returns:
- the value of the
directDependenciesrecord component
-
accumulatedDependencies
Returns the value of theaccumulatedDependenciesrecord component.- Returns:
- the value of the
accumulatedDependenciesrecord component
-
blockStateWriteRadius
public int blockStateWriteRadius()Returns the value of theblockStateWriteRadiusrecord component.- Returns:
- the value of the
blockStateWriteRadiusrecord component
-
task
Returns the value of thetaskrecord component.- Returns:
- the value of the
taskrecord component
-