Package net.minecraft.world.server
Class ChunkHolder
java.lang.Object
net.minecraft.world.server.ChunkHolder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final it.unimi.dsi.fastutil.shorts.ShortSet[]
private static final List<ChunkStatus>
private CompletableFuture<IChunk>
(package private) Chunk
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.IChunkLoadingError>> private static final ChunkHolder.LocationType[]
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.IChunkLoadingError>> private final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<IChunk,
ChunkHolder.IChunkLoadingError>>> private boolean
private final WorldLightManager
private int
private final ChunkHolder.IListener
private final ChunkHolder.IPlayerProvider
private final ChunkPos
private int
private boolean
private int
private int
private CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.IChunkLoadingError>> static final com.mojang.datafixers.util.Either<IChunk,
ChunkHolder.IChunkLoadingError> static final CompletableFuture<com.mojang.datafixers.util.Either<IChunk,
ChunkHolder.IChunkLoadingError>> static final com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.IChunkLoadingError> private static final CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.IChunkLoadingError>> private boolean
-
Constructor Summary
ConstructorDescriptionChunkHolder
(ChunkPos p_i50716_1_, int p_i50716_2_, WorldLightManager p_i50716_3_, ChunkHolder.IListener p_i50716_4_, ChunkHolder.IPlayerProvider p_i50716_5_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
blockChanged
(BlockPos p_244386_1_) private void
private void
broadcastBlockEntity
(World p_219305_1_, BlockPos p_219305_2_) private void
broadcastBlockEntityIfNeeded
(World p_244385_1_, BlockPos p_244385_2_, BlockState p_244385_3_) void
broadcastChanges
(Chunk p_219274_1_) CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.IChunkLoadingError>> CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.IChunkLoadingError>> static ChunkHolder.LocationType
getFullChunkStatus
(int p_219286_0_) CompletableFuture<com.mojang.datafixers.util.Either<IChunk,
ChunkHolder.IChunkLoadingError>> getFutureIfPresent
(ChunkStatus p_225410_1_) CompletableFuture<com.mojang.datafixers.util.Either<IChunk,
ChunkHolder.IChunkLoadingError>> getFutureIfPresentUnchecked
(ChunkStatus p_219301_1_) CompletableFuture<com.mojang.datafixers.util.Either<IChunk,
ChunkHolder.IChunkLoadingError>> getOrScheduleFuture
(ChunkStatus p_219276_1_, ChunkManager p_219276_2_) getPos()
int
static ChunkStatus
getStatus
(int p_219278_0_) int
CompletableFuture<com.mojang.datafixers.util.Either<Chunk,
ChunkHolder.IChunkLoadingError>> void
void
replaceProtoChunk
(ChunkPrimerWrapper p_219294_1_) void
sectionLightChanged
(LightType p_219280_1_, int p_219280_2_) private void
setQueueLevel
(int p_219275_1_) void
setTicketLevel
(int p_219292_1_) private void
updateChunkToSave
(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends IChunk, ChunkHolder.IChunkLoadingError>> p_219284_1_) protected void
updateFutures
(ChunkManager p_219291_1_) boolean
-
Field Details
-
UNLOADED_CHUNK
public static final com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError> UNLOADED_CHUNK -
UNLOADED_CHUNK_FUTURE
public static final CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> UNLOADED_CHUNK_FUTURE -
UNLOADED_LEVEL_CHUNK
public static final com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError> UNLOADED_LEVEL_CHUNK -
UNLOADED_LEVEL_CHUNK_FUTURE
private static final CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> UNLOADED_LEVEL_CHUNK_FUTURE -
CHUNK_STATUSES
-
FULL_CHUNK_STATUSES
-
futures
private final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>>> futures -
fullChunkFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> fullChunkFuture -
tickingChunkFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> tickingChunkFuture -
entityTickingChunkFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> entityTickingChunkFuture -
chunkToSave
-
oldTicketLevel
private int oldTicketLevel -
ticketLevel
private int ticketLevel -
queueLevel
private int queueLevel -
pos
-
hasChangedSections
private boolean hasChangedSections -
changedBlocksPerSection
private final it.unimi.dsi.fastutil.shorts.ShortSet[] changedBlocksPerSection -
blockChangedLightSectionFilter
private int blockChangedLightSectionFilter -
skyChangedLightSectionFilter
private int skyChangedLightSectionFilter -
lightEngine
-
onLevelChange
-
playerProvider
-
wasAccessibleSinceLastSave
private boolean wasAccessibleSinceLastSave -
resendLight
private boolean resendLight -
currentlyLoading
Chunk currentlyLoading
-
-
Constructor Details
-
ChunkHolder
public ChunkHolder(ChunkPos p_i50716_1_, int p_i50716_2_, WorldLightManager p_i50716_3_, ChunkHolder.IListener p_i50716_4_, ChunkHolder.IPlayerProvider p_i50716_5_)
-
-
Method Details
-
getFutureIfPresentUnchecked
public CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> getFutureIfPresentUnchecked(ChunkStatus p_219301_1_) -
getFutureIfPresent
public CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> getFutureIfPresent(ChunkStatus p_225410_1_) -
getTickingChunkFuture
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> getTickingChunkFuture() -
getEntityTickingChunkFuture
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> getEntityTickingChunkFuture() -
getFullChunkFuture
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.IChunkLoadingError>> getFullChunkFuture() -
getTickingChunk
-
getLastAvailableStatus
-
getLastAvailable
-
getChunkToSave
-
blockChanged
-
sectionLightChanged
-
broadcastChanges
-
broadcastBlockEntityIfNeeded
private void broadcastBlockEntityIfNeeded(World p_244385_1_, BlockPos p_244385_2_, BlockState p_244385_3_) -
broadcastBlockEntity
-
broadcast
-
getOrScheduleFuture
public CompletableFuture<com.mojang.datafixers.util.Either<IChunk,ChunkHolder.IChunkLoadingError>> getOrScheduleFuture(ChunkStatus p_219276_1_, ChunkManager p_219276_2_) -
updateChunkToSave
private void updateChunkToSave(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends IChunk, ChunkHolder.IChunkLoadingError>> p_219284_1_) -
getFullStatus
-
getPos
-
getTicketLevel
public int getTicketLevel() -
getQueueLevel
public int getQueueLevel() -
setQueueLevel
private void setQueueLevel(int p_219275_1_) -
setTicketLevel
public void setTicketLevel(int p_219292_1_) -
updateFutures
-
getStatus
-
getFullChunkStatus
-
wasAccessibleSinceLastSave
public boolean wasAccessibleSinceLastSave() -
refreshAccessibility
public void refreshAccessibility() -
replaceProtoChunk
-