Package net.minecraft.world.level.chunk
Class ChunkStatus
java.lang.Object
net.minecraft.world.level.chunk.ChunkStatus
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
(package private) static interface
(package private) static interface
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ChunkStatus
static final ChunkStatus
private final ChunkStatus.ChunkType
static final ChunkStatus
static final ChunkStatus
static final ChunkStatus
private final ChunkStatus.GenerationTask
private final boolean
private final EnumSet<Heightmap.Types>
private final int
static final ChunkStatus
static final ChunkStatus
private final ChunkStatus.LoadingTask
static final int
static final ChunkStatus
private final ChunkStatus
private static final ChunkStatus.LoadingTask
static final EnumSet<Heightmap.Types>
private static final EnumSet<Heightmap.Types>
private final int
private static final it.unimi.dsi.fastutil.ints.IntList
static final ChunkStatus
private static final List<ChunkStatus>
static final ChunkStatus
static final ChunkStatus
static final ChunkStatus
-
Constructor Summary
ConstructorDescriptionChunkStatus
(ChunkStatus p_289640_, int p_289655_, boolean p_289657_, EnumSet<Heightmap.Types> p_289662_, ChunkStatus.ChunkType p_289652_, ChunkStatus.GenerationTask p_289679_, ChunkStatus.LoadingTask p_289646_) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkStatus
CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> generate
(Executor p_283276_, ServerLevel p_281420_, ChunkGenerator p_281836_, StructureTemplateManager p_281305_, ThreadedLevelLightEngine p_282570_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_283114_, List<ChunkAccess> p_282723_) static int
getDistance
(ChunkStatus p_62371_) int
getIndex()
int
getRange()
static ChunkStatus
getStatusAroundFullChunk
(int p_156186_) static List<ChunkStatus>
boolean
private static CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> initializeLight
(ThreadedLevelLightEngine p_282288_, ChunkAccess p_282906_) private static boolean
isLighted
(ChunkAccess p_285378_) boolean
isOrAfter
(ChunkStatus p_62428_) private static CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> lightChunk
(ThreadedLevelLightEngine p_285039_, ChunkAccess p_285316_) CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,
ChunkHolder.ChunkLoadingFailure>> load
(ServerLevel p_223245_, StructureTemplateManager p_223246_, ThreadedLevelLightEngine p_223247_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_223248_, ChunkAccess p_223249_) static int
private static ChunkStatus
register
(String p_282817_, ChunkStatus p_282644_, int p_281535_, boolean p_282329_, EnumSet<Heightmap.Types> p_281310_, ChunkStatus.ChunkType p_281968_, ChunkStatus.GenerationTask p_283654_, ChunkStatus.LoadingTask p_282175_) private static ChunkStatus
register
(String p_62400_, ChunkStatus p_62401_, int p_62402_, EnumSet<Heightmap.Types> p_62403_, ChunkStatus.ChunkType p_62404_, ChunkStatus.GenerationTask p_62405_) private static ChunkStatus
registerSimple
(String p_62415_, ChunkStatus p_62416_, int p_62417_, EnumSet<Heightmap.Types> p_62418_, ChunkStatus.ChunkType p_62419_, ChunkStatus.SimpleGenerationTask p_62420_) toString()
-
Field Details
-
MAX_STRUCTURE_DISTANCE
public static final int MAX_STRUCTURE_DISTANCE- See Also:
-
PRE_FEATURES
-
POST_FEATURES
-
PASSTHROUGH_LOAD_TASK
-
EMPTY
-
STRUCTURE_STARTS
-
STRUCTURE_REFERENCES
-
BIOMES
-
NOISE
-
SURFACE
-
CARVERS
-
FEATURES
-
INITIALIZE_LIGHT
-
LIGHT
-
SPAWN
-
FULL
-
STATUS_BY_RANGE
-
RANGE_BY_STATUS
private static final it.unimi.dsi.fastutil.ints.IntList RANGE_BY_STATUS -
index
private final int index -
parent
-
generationTask
-
loadingTask
-
range
private final int range -
hasLoadDependencies
private final boolean hasLoadDependencies -
chunkType
-
heightmapsAfter
-
-
Constructor Details
-
ChunkStatus
public ChunkStatus(@Nullable ChunkStatus p_289640_, int p_289655_, boolean p_289657_, EnumSet<Heightmap.Types> p_289662_, ChunkStatus.ChunkType p_289652_, ChunkStatus.GenerationTask p_289679_, ChunkStatus.LoadingTask p_289646_)
-
-
Method Details
-
initializeLight
private static CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> initializeLight(ThreadedLevelLightEngine p_282288_, ChunkAccess p_282906_) -
lightChunk
private static CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> lightChunk(ThreadedLevelLightEngine p_285039_, ChunkAccess p_285316_) -
registerSimple
private static ChunkStatus registerSimple(String p_62415_, @Nullable ChunkStatus p_62416_, int p_62417_, EnumSet<Heightmap.Types> p_62418_, ChunkStatus.ChunkType p_62419_, ChunkStatus.SimpleGenerationTask p_62420_) -
register
private static ChunkStatus register(String p_62400_, @Nullable ChunkStatus p_62401_, int p_62402_, EnumSet<Heightmap.Types> p_62403_, ChunkStatus.ChunkType p_62404_, ChunkStatus.GenerationTask p_62405_) -
register
private static ChunkStatus register(String p_282817_, @Nullable ChunkStatus p_282644_, int p_281535_, boolean p_282329_, EnumSet<Heightmap.Types> p_281310_, ChunkStatus.ChunkType p_281968_, ChunkStatus.GenerationTask p_283654_, ChunkStatus.LoadingTask p_282175_) -
getStatusList
-
isLighted
-
getStatusAroundFullChunk
-
maxDistance
public static int maxDistance() -
getDistance
-
getIndex
public int getIndex() -
getParent
-
generate
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> generate(Executor p_283276_, ServerLevel p_281420_, ChunkGenerator p_281836_, StructureTemplateManager p_281305_, ThreadedLevelLightEngine p_282570_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_283114_, List<ChunkAccess> p_282723_) -
load
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess,ChunkHolder.ChunkLoadingFailure>> load(ServerLevel p_223245_, StructureTemplateManager p_223246_, ThreadedLevelLightEngine p_223247_, Function<ChunkAccess, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>>> p_223248_, ChunkAccess p_223249_) -
getRange
public int getRange() -
hasLoadDependencies
public boolean hasLoadDependencies() -
getChunkType
-
byName
-
heightmapsAfter
-
isOrAfter
-
toString
-