Package net.minecraft.server.world
Class ChunkHolder
java.lang.Object
net.minecraft.server.world.ChunkHolder
public class ChunkHolder extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChunkHolder.LevelTypestatic interfaceChunkHolder.LevelUpdateListenerstatic interfaceChunkHolder.PlayersWatchingChunkProviderstatic interfaceChunkHolder.Unloaded -
Field Summary
-
Constructor Summary
Constructors Constructor Description ChunkHolder(ChunkPos pos, int level, LightingProvider lightingProvider, ChunkHolder.LevelUpdateListener levelUpdateListener, ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider) -
Method Summary
-
Field Details
-
UNLOADED_CHUNK
-
UNLOADED_CHUNK_FUTURE
public static final CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> UNLOADED_CHUNK_FUTURE -
UNLOADED_WORLD_CHUNK
public static final com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded> UNLOADED_WORLD_CHUNK -
UNLOADED_WORLD_CHUNK_FUTURE
private static final CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> UNLOADED_WORLD_CHUNK_FUTURE -
CHUNK_STATUSES
-
LEVEL_TYPES
-
futuresByStatus
private final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>>> futuresByStatus -
borderFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> borderFuture -
tickingFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> tickingFuture -
entityTickingFuture
private volatile CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> entityTickingFuture -
future
-
lastTickLevel
private int lastTickLevel -
level
private int level -
completedLevel
private int completedLevel -
pos
-
blockUpdatePositions
private final short[] blockUpdatePositions -
blockUpdateCount
private int blockUpdateCount -
sectionsNeedingUpdateMask
private int sectionsNeedingUpdateMask -
blockLightUpdateBits
private int blockLightUpdateBits -
skyLightUpdateBits
private int skyLightUpdateBits -
lightingProvider
-
levelUpdateListener
-
playersWatchingChunkProvider
-
ticking
private boolean ticking
-
-
Constructor Details
-
ChunkHolder
public ChunkHolder(ChunkPos pos, int level, LightingProvider lightingProvider, ChunkHolder.LevelUpdateListener levelUpdateListener, ChunkHolder.PlayersWatchingChunkProvider playersWatchingChunkProvider)
-
-
Method Details
-
getFuture
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> getFuture(ChunkStatus leastStatus) -
getNowFuture
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> getNowFuture(ChunkStatus leastStatus) -
getTickingFuture
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> getTickingFuture() -
getEntityTickingFuture
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> getEntityTickingFuture() -
getBorderFuture
public CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk,ChunkHolder.Unloaded>> getBorderFuture() -
getWorldChunk
-
method_23270
-
getCompletedChunk
-
getFuture
-
markForBlockUpdate
public void markForBlockUpdate(int int2, int int3, int int4) -
markForLightUpdate
-
flushUpdates
-
sendBlockEntityUpdatePacket
-
sendPacketToPlayersWatching
-
createFuture
public CompletableFuture<com.mojang.datafixers.util.Either<Chunk,ChunkHolder.Unloaded>> createFuture(ChunkStatus targetStatus, ThreadedAnvilChunkStorage chunkStorage) -
updateFuture
private void updateFuture(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends Chunk,ChunkHolder.Unloaded>> newChunkFuture) -
getLevelType
-
getPos
-
getLevel
public int getLevel() -
getCompletedLevel
public int getCompletedLevel() -
setCompletedLevel
private void setCompletedLevel(int level) -
setLevel
public void setLevel(int level) -
tick
-
getTargetGenerationStatus
-
getLevelType
-
isTicking
public boolean isTicking() -
updateTickingStatus
public void updateTickingStatus() -
method_20456
-