public class ChunkStatus extends Object
Modifier and Type | Class and 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 |
Constructor and Description |
---|
ChunkStatus(String id,
ChunkStatus previous,
int taskMargin,
EnumSet<Heightmap.Type> heightMapTypes,
ChunkStatus.ChunkType chunkType,
ChunkStatus.GenerationTask generationTask,
ChunkStatus.LoadTask loadTask) |
private static final EnumSet<Heightmap.Type> PRE_CARVER_HEIGHTMAPS
private static final EnumSet<Heightmap.Type> POST_CARVER_HEIGHTMAPS
private static final ChunkStatus.LoadTask STATUS_BUMP_LOAD_TASK
public static final ChunkStatus EMPTY
public static final ChunkStatus STRUCTURE_STARTS
public static final ChunkStatus STRUCTURE_REFERENCES
public static final ChunkStatus BIOMES
public static final ChunkStatus NOISE
public static final ChunkStatus SURFACE
public static final ChunkStatus CARVERS
public static final ChunkStatus LIQUID_CARVERS
public static final ChunkStatus FEATURES
public static final ChunkStatus LIGHT
public static final ChunkStatus SPAWN
public static final ChunkStatus HEIGHTMAPS
public static final ChunkStatus FULL
private static final List<ChunkStatus> DISTANCE_TO_STATUS
private static final it.unimi.dsi.fastutil.ints.IntList STATUS_TO_DISTANCE
private final String id
private final int index
private final ChunkStatus previous
private final ChunkStatus.GenerationTask generationTask
private final ChunkStatus.LoadTask loadTask
private final int taskMargin
private final ChunkStatus.ChunkType chunkType
private final EnumSet<Heightmap.Type> heightMapTypes
ChunkStatus(String id, @Nullable ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.GenerationTask generationTask, ChunkStatus.LoadTask loadTask)
private static CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> getLightingFuture(ChunkStatus status, ServerLightingProvider lightingProvider, Chunk chunk)
private static ChunkStatus register(String id, @Nullable ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.SimpleGenerationTask task)
private static ChunkStatus register(String id, @Nullable ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.GenerationTask task)
private static ChunkStatus register(String id, @Nullable ChunkStatus previous, int taskMargin, EnumSet<Heightmap.Type> heightMapTypes, ChunkStatus.ChunkType chunkType, ChunkStatus.GenerationTask task, ChunkStatus.LoadTask loadTask)
public static List<ChunkStatus> createOrderedList()
private static boolean shouldExcludeBlockLight(ChunkStatus status, Chunk chunk)
public static ChunkStatus byDistanceFromFull(int level)
public static int getMaxDistanceFromFull()
public static int getDistanceFromFull(ChunkStatus status)
public int getIndex()
public String getId()
public ChunkStatus getPrevious()
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)
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)
public int getTaskMargin()
public ChunkStatus.ChunkType getChunkType()
public static ChunkStatus byId(String id)
public EnumSet<Heightmap.Type> getHeightmapTypes()
public boolean isAtLeast(ChunkStatus chunk)