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 context, StaticCache2D<GenerationChunkHolder> cache, ChunkAccess chunk) intReturns the value of theblockStateWriteRadiusrecord component.private ChunkAccesscompleteChunkGeneration(ChunkAccess newCenterChunk, @Nullable ProfiledDuration profiledDuration) Returns the value of thedirectDependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.intgetAccumulatedRadiusOf(ChunkStatus status) 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 context, StaticCache2D<GenerationChunkHolder> cache, ChunkAccess chunk) -
completeChunkGeneration
private ChunkAccess completeChunkGeneration(ChunkAccess newCenterChunk, @Nullable ProfiledDuration profiledDuration) -
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. -
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
-