Package net.minecraft.world.chunk
Class ChunkStatus
java.lang.Object
net.minecraft.world.chunk.ChunkStatus
public class ChunkStatus extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChunkStatus.ChunkType
Specifies the type of a chunk(package private) static interface
ChunkStatus.GenerationTask
A task called when a chunk needs to be generated.(package private) static interface
ChunkStatus.LoadTask
A task called when a chunk is loaded but does not need to be generated.(package private) static interface
ChunkStatus.SimpleGenerationTask
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChunkStatus(String id, ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.GenerationTask generationTask, ChunkStatus.LoadTask loadTask)
-
Method Summary
-
Field Details
-
PRE_CARVER_HEIGHTMAPS
-
POST_CARVER_HEIGHTMAPS
-
STATUS_BUMP_LOAD_TASK
A load task which only bumps the chunk status of the chunk. -
EMPTY
-
STRUCTURE_STARTS
-
STRUCTURE_REFERENCES
-
BIOMES
-
NOISE
-
SURFACE
-
CARVERS
-
LIQUID_CARVERS
-
FEATURES
-
LIGHT
-
SPAWN
-
HEIGHTMAPS
-
FULL
-
DISTANCE_TO_STATUS
-
STATUS_TO_DISTANCE
-
id
-
index
private final int index -
previous
-
generationTask
-
loadTask
-
taskMargin
private final int taskMargin -
chunkType
-
heightMapTypes
-
-
Constructor Details
-
ChunkStatus
ChunkStatus(String id, @Nullable ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.GenerationTask generationTask, ChunkStatus.LoadTask loadTask)
-
-
Method Details
-
getLightingFuture
private static CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> getLightingFuture(ChunkStatus status, ServerLightingProvider lightingProvider, Chunk chunk) -
register
private static ChunkStatus register(String id, @Nullable ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.SimpleGenerationTask task) -
register
private static ChunkStatus register(String id, @Nullable ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.GenerationTask task) -
register
private static ChunkStatus register(String id, @Nullable ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.GenerationTask task, ChunkStatus.LoadTask loadTask) -
createOrderedList
-
shouldExcludeBlockLight
-
byDistanceFromFull
-
getMaxDistanceFromFull
public static int getMaxDistanceFromFull() -
getDistanceFromFull
-
getIndex
public int getIndex() -
getId
-
getPrevious
-
runGenerationTask
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> runGenerationTask(ServerWorld world, ChunkGenerator chunkGenerator, StructureManager structureManager, ServerLightingProvider lightingProvider, Function<Chunk,CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>> function, List<Chunk> chunks) -
runLoadTask
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> runLoadTask(ServerWorld world, StructureManager structureManager, ServerLightingProvider lightingProvider, Function<Chunk,CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>> function, Chunk chunk) -
getTaskMargin
public int getTaskMargin() -
getChunkType
-
byId
-
getHeightmapTypes
-
isAtLeast
-
toString
-