public class ChunkStatus extends ForgeRegistryEntry<ChunkStatus>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
ChunkStatus.IGenerationWorker |
(package private) static interface |
ChunkStatus.ILoadingWorker |
(package private) static interface |
ChunkStatus.ISelectiveWorker |
static class |
ChunkStatus.Type |
delegate
Constructor and Description |
---|
ChunkStatus(java.lang.String nameIn,
ChunkStatus parentIn,
int taskRangeIn,
java.util.EnumSet<Heightmap.Type> heightmapsIn,
ChunkStatus.Type typeIn,
ChunkStatus.IGenerationWorker generationWorkerIn,
ChunkStatus.ILoadingWorker loadingWorkerIn) |
Modifier and Type | Method and Description |
---|---|
static ChunkStatus |
byName(java.lang.String location) |
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> |
doGenerationWork(ServerWorld worldIn,
ChunkGenerator<?> chunkGeneratorIn,
TemplateManager templateManagerIn,
ServerWorldLightManager lightManager,
java.util.function.Function<IChunk,java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> p_223198_5_,
java.util.List<IChunk> chunks) |
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> |
doLoadingWork(ServerWorld worldIn,
TemplateManager templateManagerIn,
ServerWorldLightManager lightManager,
java.util.function.Function<IChunk,java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> p_223201_4_,
IChunk p_223201_5_) |
static java.util.List<ChunkStatus> |
getAll() |
static int |
getDistance(ChunkStatus p_222599_0_) |
java.util.EnumSet<Heightmap.Type> |
getHeightMaps() |
java.lang.String |
getName() |
ChunkStatus |
getParent() |
static ChunkStatus |
getStatus(int p_222581_0_) |
int |
getTaskRange() |
ChunkStatus.Type |
getType() |
boolean |
isAtLeast(ChunkStatus status) |
private static boolean |
isLighted(ChunkStatus p_223197_0_,
IChunk p_223197_1_) |
private static java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> |
lightChunk(ChunkStatus p_223206_0_,
ServerWorldLightManager p_223206_1_,
IChunk p_223206_2_) |
static int |
maxDistance() |
int |
ordinal() |
private static ChunkStatus |
register(java.lang.String key,
ChunkStatus p_223207_1_,
int p_223207_2_,
java.util.EnumSet<Heightmap.Type> p_223207_3_,
ChunkStatus.Type p_223207_4_,
ChunkStatus.IGenerationWorker p_223207_5_) |
private static ChunkStatus |
register(java.lang.String key,
ChunkStatus p_223196_1_,
int p_223196_2_,
java.util.EnumSet<Heightmap.Type> p_223196_3_,
ChunkStatus.Type p_223196_4_,
ChunkStatus.IGenerationWorker p_223196_5_,
ChunkStatus.ILoadingWorker p_223196_6_) |
private static ChunkStatus |
registerSelective(java.lang.String key,
ChunkStatus p_223203_1_,
int p_223203_2_,
java.util.EnumSet<Heightmap.Type> p_223203_3_,
ChunkStatus.Type p_223203_4_,
ChunkStatus.ISelectiveWorker p_223203_5_) |
java.lang.String |
toString() |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
private static final java.util.EnumSet<Heightmap.Type> PRE_FEATURES
private static final java.util.EnumSet<Heightmap.Type> POST_FEATURES
private static final ChunkStatus.ILoadingWorker NOOP_LOADING_WORKER
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 java.util.List<ChunkStatus> STATUS_BY_RANGE
private static final it.unimi.dsi.fastutil.ints.IntList RANGE_BY_STATUS
private final java.lang.String name
private final int ordinal
private final ChunkStatus parent
private final ChunkStatus.IGenerationWorker generationWorker
private final ChunkStatus.ILoadingWorker loadingWorker
private final int taskRange
private final ChunkStatus.Type type
private final java.util.EnumSet<Heightmap.Type> heightmaps
public ChunkStatus(java.lang.String nameIn, @Nullable ChunkStatus parentIn, int taskRangeIn, java.util.EnumSet<Heightmap.Type> heightmapsIn, ChunkStatus.Type typeIn, ChunkStatus.IGenerationWorker generationWorkerIn, ChunkStatus.ILoadingWorker loadingWorkerIn)
private static java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> lightChunk(ChunkStatus p_223206_0_, ServerWorldLightManager p_223206_1_, IChunk p_223206_2_)
private static ChunkStatus registerSelective(java.lang.String key, @Nullable ChunkStatus p_223203_1_, int p_223203_2_, java.util.EnumSet<Heightmap.Type> p_223203_3_, ChunkStatus.Type p_223203_4_, ChunkStatus.ISelectiveWorker p_223203_5_)
private static ChunkStatus register(java.lang.String key, @Nullable ChunkStatus p_223207_1_, int p_223207_2_, java.util.EnumSet<Heightmap.Type> p_223207_3_, ChunkStatus.Type p_223207_4_, ChunkStatus.IGenerationWorker p_223207_5_)
private static ChunkStatus register(java.lang.String key, @Nullable ChunkStatus p_223196_1_, int p_223196_2_, java.util.EnumSet<Heightmap.Type> p_223196_3_, ChunkStatus.Type p_223196_4_, ChunkStatus.IGenerationWorker p_223196_5_, ChunkStatus.ILoadingWorker p_223196_6_)
public static java.util.List<ChunkStatus> getAll()
private static boolean isLighted(ChunkStatus p_223197_0_, IChunk p_223197_1_)
public static ChunkStatus getStatus(int p_222581_0_)
public static int maxDistance()
public static int getDistance(ChunkStatus p_222599_0_)
public int ordinal()
public java.lang.String getName()
public ChunkStatus getParent()
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> doGenerationWork(ServerWorld worldIn, ChunkGenerator<?> chunkGeneratorIn, TemplateManager templateManagerIn, ServerWorldLightManager lightManager, java.util.function.Function<IChunk,java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> p_223198_5_, java.util.List<IChunk> chunks)
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> doLoadingWork(ServerWorld worldIn, TemplateManager templateManagerIn, ServerWorldLightManager lightManager, java.util.function.Function<IChunk,java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> p_223201_4_, IChunk p_223201_5_)
public int getTaskRange()
public ChunkStatus.Type getType()
public static ChunkStatus byName(java.lang.String location)
public java.util.EnumSet<Heightmap.Type> getHeightMaps()
public boolean isAtLeast(ChunkStatus status)
public java.lang.String toString()
toString
in class java.lang.Object