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
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChunkDependencies
The field for theaccumulatedDependencies
record component.private final int
The field for theblockStateWriteRadius
record component.private final ChunkDependencies
The field for thedirectDependencies
record component.private final ChunkStatus
The field for thetargetStatus
record component.private final ChunkStatusTask
The field for thetask
record component. -
Constructor Summary
ConstructorDescriptionChunkStep
(ChunkStatus targetStatus, ChunkDependencies directDependencies, ChunkDependencies accumulatedDependencies, int blockStateWriteRadius, ChunkStatusTask task) Creates an instance of aChunkStep
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccumulatedDependencies
record component.apply
(WorldGenContext p_347561_, StaticCache2D<GenerationChunkHolder> p_347614_, ChunkAccess p_347449_) int
Returns the value of theblockStateWriteRadius
record component.private ChunkAccess
completeChunkGeneration
(ChunkAccess p_347705_, ProfiledDuration p_347691_) Returns the value of thedirectDependencies
record component.final boolean
Indicates whether some other object is "equal to" this one.int
getAccumulatedRadiusOf
(ChunkStatus p_347454_) final int
hashCode()
Returns a hash code value for this object.Returns the value of thetargetStatus
record component.task()
Returns the value of thetask
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
targetStatus
The field for thetargetStatus
record component. -
directDependencies
The field for thedirectDependencies
record component. -
accumulatedDependencies
The field for theaccumulatedDependencies
record component. -
blockStateWriteRadius
private final int blockStateWriteRadiusThe field for theblockStateWriteRadius
record component. -
task
The field for thetask
record component.
-
-
Constructor Details
-
ChunkStep
public ChunkStep(ChunkStatus targetStatus, ChunkDependencies directDependencies, ChunkDependencies accumulatedDependencies, int blockStateWriteRadius, ChunkStatusTask task) Creates an instance of aChunkStep
record class.- Parameters:
targetStatus
- the value for thetargetStatus
record componentdirectDependencies
- the value for thedirectDependencies
record componentaccumulatedDependencies
- the value for theaccumulatedDependencies
record componentblockStateWriteRadius
- the value for theblockStateWriteRadius
record componenttask
- the value for thetask
record component
-
-
Method Details
-
getAccumulatedRadiusOf
-
apply
public CompletableFuture<ChunkAccess> apply(WorldGenContext p_347561_, StaticCache2D<GenerationChunkHolder> p_347614_, ChunkAccess p_347449_) -
completeChunkGeneration
private ChunkAccess completeChunkGeneration(ChunkAccess p_347705_, @Nullable ProfiledDuration p_347691_) -
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 thetargetStatus
record component.- Returns:
- the value of the
targetStatus
record component
-
directDependencies
Returns the value of thedirectDependencies
record component.- Returns:
- the value of the
directDependencies
record component
-
accumulatedDependencies
Returns the value of theaccumulatedDependencies
record component.- Returns:
- the value of the
accumulatedDependencies
record component
-
blockStateWriteRadius
public int blockStateWriteRadius()Returns the value of theblockStateWriteRadius
record component.- Returns:
- the value of the
blockStateWriteRadius
record component
-
task
Returns the value of thetask
record component.- Returns:
- the value of the
task
record component
-