Package net.minecraft.world.chunk
Class ChunkStatus
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<ChunkStatus>
-
- net.minecraft.world.chunk.ChunkStatus
-
- All Implemented Interfaces:
IForgeRegistryEntry<ChunkStatus>
public class ChunkStatus extends ForgeRegistryEntry<ChunkStatus>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
ChunkStatus.IGenerationWorker
(package private) static interface
ChunkStatus.ILoadingWorker
(package private) static interface
ChunkStatus.ISelectiveWorker
static class
ChunkStatus.Type
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description ChunkStatus(java.lang.String p_i51520_1_, ChunkStatus p_i51520_2_, int p_i51520_3_, java.util.EnumSet<Heightmap.Type> p_i51520_4_, ChunkStatus.Type p_i51520_5_, ChunkStatus.IGenerationWorker p_i51520_6_, ChunkStatus.ILoadingWorker p_i51520_7_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChunkStatus
byName(java.lang.String p_222591_0_)
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>
generate(ServerWorld p_223198_1_, ChunkGenerator p_223198_2_, TemplateManager p_223198_3_, ServerWorldLightManager p_223198_4_, java.util.function.Function<IChunk,java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> p_223198_5_, java.util.List<IChunk> p_223198_6_)
ChunkStatus.Type
getChunkType()
static int
getDistance(ChunkStatus p_222599_0_)
int
getIndex()
java.lang.String
getName()
ChunkStatus
getParent()
int
getRange()
static ChunkStatus
getStatus(int p_222581_0_)
static java.util.List<ChunkStatus>
getStatusList()
java.util.EnumSet<Heightmap.Type>
heightmapsAfter()
private static boolean
isLighted(ChunkStatus p_223197_0_, IChunk p_223197_1_)
boolean
isOrAfter(ChunkStatus p_209003_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_)
java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>
load(ServerWorld p_223201_1_, TemplateManager p_223201_2_, ServerWorldLightManager p_223201_3_, 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 int
maxDistance()
private static ChunkStatus
register(java.lang.String p_223207_0_, 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 p_223196_0_, 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
registerSimple(java.lang.String p_223203_0_, 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()
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Field Detail
-
PRE_FEATURES
private static final java.util.EnumSet<Heightmap.Type> PRE_FEATURES
-
POST_FEATURES
private static final java.util.EnumSet<Heightmap.Type> POST_FEATURES
-
PASSTHROUGH_LOAD_TASK
private static final ChunkStatus.ILoadingWorker PASSTHROUGH_LOAD_TASK
-
EMPTY
public static final ChunkStatus EMPTY
-
STRUCTURE_STARTS
public static final ChunkStatus STRUCTURE_STARTS
-
STRUCTURE_REFERENCES
public static final ChunkStatus STRUCTURE_REFERENCES
-
BIOMES
public static final ChunkStatus BIOMES
-
NOISE
public static final ChunkStatus NOISE
-
SURFACE
public static final ChunkStatus SURFACE
-
CARVERS
public static final ChunkStatus CARVERS
-
LIQUID_CARVERS
public static final ChunkStatus LIQUID_CARVERS
-
FEATURES
public static final ChunkStatus FEATURES
-
LIGHT
public static final ChunkStatus LIGHT
-
SPAWN
public static final ChunkStatus SPAWN
-
HEIGHTMAPS
public static final ChunkStatus HEIGHTMAPS
-
FULL
public static final ChunkStatus FULL
-
STATUS_BY_RANGE
private static final java.util.List<ChunkStatus> STATUS_BY_RANGE
-
RANGE_BY_STATUS
private static final it.unimi.dsi.fastutil.ints.IntList RANGE_BY_STATUS
-
name
private final java.lang.String name
-
index
private final int index
-
parent
private final ChunkStatus parent
-
generationTask
private final ChunkStatus.IGenerationWorker generationTask
-
loadingTask
private final ChunkStatus.ILoadingWorker loadingTask
-
range
private final int range
-
chunkType
private final ChunkStatus.Type chunkType
-
heightmapsAfter
private final java.util.EnumSet<Heightmap.Type> heightmapsAfter
-
-
Constructor Detail
-
ChunkStatus
public ChunkStatus(java.lang.String p_i51520_1_, @Nullable ChunkStatus p_i51520_2_, int p_i51520_3_, java.util.EnumSet<Heightmap.Type> p_i51520_4_, ChunkStatus.Type p_i51520_5_, ChunkStatus.IGenerationWorker p_i51520_6_, ChunkStatus.ILoadingWorker p_i51520_7_)
-
-
Method Detail
-
lightChunk
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_)
-
registerSimple
private static ChunkStatus registerSimple(java.lang.String p_223203_0_, @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_)
-
register
private static ChunkStatus register(java.lang.String p_223207_0_, @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_)
-
register
private static ChunkStatus register(java.lang.String p_223196_0_, @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_)
-
getStatusList
public static java.util.List<ChunkStatus> getStatusList()
-
isLighted
private static boolean isLighted(ChunkStatus p_223197_0_, IChunk p_223197_1_)
-
getStatus
public static ChunkStatus getStatus(int p_222581_0_)
-
maxDistance
public static int maxDistance()
-
getDistance
public static int getDistance(ChunkStatus p_222599_0_)
-
getIndex
public int getIndex()
-
getName
public java.lang.String getName()
-
getParent
public ChunkStatus getParent()
-
generate
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> generate(ServerWorld p_223198_1_, ChunkGenerator p_223198_2_, TemplateManager p_223198_3_, ServerWorldLightManager p_223198_4_, java.util.function.Function<IChunk,java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> p_223198_5_, java.util.List<IChunk> p_223198_6_)
-
load
public java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> load(ServerWorld p_223201_1_, TemplateManager p_223201_2_, ServerWorldLightManager p_223201_3_, java.util.function.Function<IChunk,java.util.concurrent.CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> p_223201_4_, IChunk p_223201_5_)
-
getRange
public int getRange()
-
getChunkType
public ChunkStatus.Type getChunkType()
-
byName
public static ChunkStatus byName(java.lang.String p_222591_0_)
-
heightmapsAfter
public java.util.EnumSet<Heightmap.Type> heightmapsAfter()
-
isOrAfter
public boolean isOrAfter(ChunkStatus p_209003_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-