net.minecraft.server.level

public class ChunkHolder

ajy
net.minecraft.server.level.ChunkHolder
net.minecraft.class_3193
net.minecraft.server.world.ChunkHolder
net.minecraft.src.C_5422_
net.minecraft.server.level.PlayerChunk

Field summary

Modifier and TypeField
public static final com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>
a
UNLOADED_CHUNK
field_16426
UNLOADED_CHUNK
f_139995_
public static final CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
b
UNLOADED_CHUNK_FUTURE
field_16430
UNLOADED_CHUNK_FUTURE
f_139996_
public static final com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>
c
UNLOADED_LEVEL_CHUNK
field_16427
UNLOADED_WORLD_CHUNK
f_139997_
private static final com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>
d
NOT_DONE_YET
field_36388
CHUNK_LOADING_NOT_FINISHED
f_203750_
private static final CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
e
UNLOADED_LEVEL_CHUNK_FUTURE
field_16429
UNLOADED_WORLD_CHUNK_FUTURE
f_139998_
private static final List<ChunkStatus>
f
CHUNK_STATUSES
field_13868
CHUNK_STATUSES
f_139999_
private final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>>
g
futures
field_16425
futuresByStatus
f_140001_
private final LevelHeightAccessor
h
levelHeightAccessor
field_26929
world
f_142983_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
i
fullChunkFuture
field_16431
accessibleFuture
f_140002_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
j
tickingChunkFuture
field_19333
tickingFuture
f_140003_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
k
entityTickingChunkFuture
field_13865
entityTickingFuture
f_140004_
private CompletableFuture<ChunkAccess>
l
chunkToSave
field_16428
savingFuture
f_140005_
private final DebugBuffer<ChunkHolder$ChunkSaveDebug>
m
chunkToSaveHistory
field_28806
actionStack
f_142984_
private int
n
oldTicketLevel
field_16432
lastTickLevel
f_140006_
private int
o
ticketLevel
field_13862
level
f_140007_
private int
p
queueLevel
field_17208
completedLevel
f_140008_
final ChunkPos
q
pos
field_13864
pos
f_140009_
private boolean
r
hasChangedSections
field_25803
pendingBlockUpdates
f_140010_
private final it.unimi.dsi.fastutil.shorts.ShortSet[]
s
changedBlocksPerSection
field_25804
blockUpdatesBySection
f_140011_
private final BitSet
t
blockChangedLightSectionFilter
field_13871
blockLightUpdateBits
f_140012_
private final BitSet
u
skyChangedLightSectionFilter
field_13870
skyLightUpdateBits
f_140013_
private final LevelLightEngine
v
lightEngine
field_13863
lightingProvider
f_140014_
private final ChunkHolder$LevelChangeListener
w
onLevelChange
field_17209
levelUpdateListener
f_140015_
private final ChunkHolder$PlayerProvider
x
playerProvider
field_17210
playersWatchingChunkProvider
f_140016_
private boolean
y
wasAccessibleSinceLastSave
field_19238
accessible
f_140017_
private CompletableFuture<Void>
z
pendingFullStateConfirmation
field_26930
field_26930
f_142981_
private CompletableFuture<?>
A
sendSync
field_46085
postProcessingFuture
f_290310_

Constructor summary

ModifierConstructor
public (ChunkPos pos, int level, LevelHeightAccessor world, LevelLightEngine lightingProvider, ChunkHolder$LevelChangeListener levelUpdateListener, ChunkHolder$PlayerProvider playersWatchingChunkProvider)

Method summary

Modifier and TypeMethod
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
a(dhk arg0)
getFutureIfPresentUnchecked(ChunkStatus arg0)
method_16146(class_2806 arg0)
getFutureFor(ChunkStatus leastStatus)
m_140047_(C_2126_ arg0)
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
b(dhk arg0)
getFutureIfPresent(ChunkStatus arg0)
method_21737(class_2806 arg0)
getValidFutureFor(ChunkStatus leastStatus)
m_140080_(C_2126_ arg0)
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
a()
getTickingChunkFuture()
method_16145()
getTickingFuture()
m_140026_()
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
b()
getEntityTickingChunkFuture()
method_14003()
getEntityTickingFuture()
m_140073_()
public CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
c()
getFullChunkFuture()
method_20725()
getAccessibleFuture()
m_140082_()
public LevelChunk
d()
getTickingChunk()
method_16144()
getWorldChunk()
m_140085_()
public CompletableFuture<?>
e()
getChunkSendSyncFuture()
method_53681()
getPostProcessingFuture()
m_294134_()
public LevelChunk
f()
getChunkToSend()
method_53682()
getPostProcessedChunk()
m_295552_()
public LevelChunk
g()
getFullChunk()
method_41205()
getAccessibleChunk()
m_212234_()
public ChunkStatus
h()
getLastAvailableStatus()
method_23270()
getCurrentStatus()
m_140088_()
public ChunkAccess
i()
getLastAvailable()
method_14010()
getCurrentChunk()
m_140089_()
public CompletableFuture<ChunkAccess>
j()
getChunkToSave()
method_14000()
getSavingFuture()
m_140090_()
public void
a(gw arg0)
blockChanged(BlockPos arg0)
method_14002(class_2338 arg0)
markForBlockUpdate(BlockPos pos)
m_140056_(C_4675_ arg0)
public void
a(cqe arg0, int arg1)
sectionLightChanged(LightLayer arg0, int arg1)
method_14012(class_1944 arg0, int arg1)
markForLightUpdate(LightType lightType, int y)
m_140036_(C_1607_ p_140038_, int arg1)
public void
a(dhq arg0)
broadcastChanges(LevelChunk arg0)
method_14006(class_2818 arg0)
flushUpdates(WorldChunk chunk)
m_140054_(C_2137_ arg0)
private void
a(List<akr> arg0, cpv arg1, gw arg2, dfj arg3)
broadcastBlockEntityIfNeeded(List<ServerPlayer> arg0, Level arg1, BlockPos arg2, BlockState arg3)
method_30311(List<class_3222> arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3)
tryUpdateBlockEntityAt(List<ServerPlayerEntity> players, World world, BlockPos pos, BlockState state)
m_288224_(List<C_13_> p_289011_, C_1596_ p_288969_, C_4675_ p_288973_, C_2064_ arg3)
private void
a(List<akr> arg0, cpv arg1, gw arg2)
broadcastBlockEntity(List<ServerPlayer> arg0, Level arg1, BlockPos arg2)
method_14009(List<class_3222> arg0, class_1937 arg1, class_2338 arg2)
sendBlockEntityUpdatePacket(List<ServerPlayerEntity> players, World world, BlockPos pos)
m_288223_(List<C_13_> p_289005_, C_1596_ p_288981_, C_4675_ arg2)
private void
a(List<akr> arg0, vd<?> arg1)
broadcast(List<ServerPlayer> arg0, Packet<?> arg1)
method_13992(List<class_3222> arg0, class_2596<?> arg1)
sendPacketToPlayers(List<ServerPlayerEntity> players, Packet<?> packet)
m_288202_(List<C_13_> p_289013_, C_5028_<?> arg1)
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
a(dhk arg0, aka arg1)
getOrScheduleFuture(ChunkStatus arg0, ChunkMap arg1)
method_13993(class_2806 arg0, class_3898 arg1)
getChunkAt(ChunkStatus targetStatus, ThreadedAnvilChunkStorage chunkStorage)
m_140049_(C_2126_ p_140051_, C_5429_ arg1)
protected void
a(String arg0, CompletableFuture<?> arg1)
addSaveDependency(String arg0, CompletableFuture<?> arg1)
method_39967(String arg0, CompletableFuture<?> arg1)
combineSavingFuture(String thenDesc, CompletableFuture<?> then)
m_200416_(String p_200418_, CompletableFuture<?> arg1)
private void
a(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends dhf, ajy$a>> arg0, String arg1)
updateChunkToSave(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends ChunkAccess, ChunkHolder$ChunkLoadingFailure>> arg0, String arg1)
method_16143(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends class_2791, class_3193$class_3724>> arg0, String arg1)
combineSavingFuture(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends Chunk, ChunkHolder$Unloaded>> then, String thenDesc)
m_143017_(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends C_2116_, C_5422_$C_5424_>> p_143019_, String arg1)
public void
a(CompletableFuture<?> arg0)
addSendDependency(CompletableFuture<?> arg0)
method_53680(CompletableFuture<?> arg0)
combinePostProcessingFuture(CompletableFuture<?> postProcessingFuture)
m_295085_(CompletableFuture<?> arg0)
public FullChunkStatus
k()
getFullStatus()
method_23271()
getLevelType()
m_287213_()
public ChunkPos
l()
getPos()
method_13994()
getPos()
m_140092_()
public int
m()
getTicketLevel()
method_14005()
getLevel()
m_140093_()
public int
n()
getQueueLevel()
method_17208()
getCompletedLevel()
m_140094_()
private void
b(int arg0)
setQueueLevel(int arg0)
method_17207(int arg0)
setCompletedLevel(int level)
m_140086_(int arg0)
public void
a(int arg0)
setTicketLevel(int arg0)
method_15890(int arg0)
setLevel(int level)
m_140027_(int arg0)
private void
a(aka arg0, CompletableFuture<com.mojang.datafixers.util.Either<dhq, ajy$a>> arg1, Executor arg2, akj arg3)
scheduleFullChunkPromotion(ChunkMap arg0, CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>> arg1, Executor arg2, FullChunkStatus arg3)
method_31409(class_3898 arg0, CompletableFuture<com.mojang.datafixers.util.Either<class_2818, class_3193$class_3724>> arg1, Executor arg2, class_3194 arg3)
method_31409(ThreadedAnvilChunkStorage arg0, CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk, ChunkHolder$Unloaded>> arg1, Executor arg2, ChunkLevelType arg3)
m_142998_(C_5429_ p_143000_, CompletableFuture<com.mojang.datafixers.util.Either<C_2137_, C_5422_$C_5424_>> p_143001_, Executor p_287621_, C_286921_ arg3)
private void
a(aka arg0, akj arg1)
demoteFullChunk(ChunkMap arg0, FullChunkStatus arg1)
method_31408(class_3898 arg0, class_3194 arg1)
method_31408(ThreadedAnvilChunkStorage arg0, ChunkLevelType arg1)
m_287189_(C_5429_ p_287649_, C_286921_ arg1)
protected void
a(aka arg0, Executor arg1)
updateFutures(ChunkMap arg0, Executor arg1)
method_14007(class_3898 arg0, Executor arg1)
updateFutures(ThreadedAnvilChunkStorage chunkStorage, Executor executor)
m_143003_(C_5429_ p_143005_, Executor arg1)
public boolean
o()
wasAccessibleSinceLastSave()
method_20384()
isAccessible()
m_140095_()
public void
p()
refreshAccessibility()
method_20385()
updateAccessibleStatus()
m_140096_()
public void
a(dhp arg0)
replaceProtoChunk(ImposterProtoChunk arg0)
method_20456(class_2821 arg0)
setCompletedChunk(WrapperProtoChunk chunk)
m_140052_(C_2136_ arg0)
public List<com.mojang.datafixers.util.Pair<ChunkStatus, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>>>
q()
getAllFutures()
method_40066()
collectFuturesByStatus()
m_202980_()