net.minecraft.server.level

public class ChunkHolder

afs
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
field_36388
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 static final ChunkHolder$FullChunkStatus[]
g
FULL_CHUNK_STATUSES
field_13873
LEVEL_TYPES
f_140000_
private static final int
h
BLOCKS_BEFORE_RESEND_FUDGE
field_29668
field_29668
f_142982_
private final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>>
i
futures
field_16425
futuresByStatus
f_140001_
private final LevelHeightAccessor
j
levelHeightAccessor
field_26929
world
f_142983_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
k
fullChunkFuture
field_16431
accessibleFuture
f_140002_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
l
tickingChunkFuture
field_19333
tickingFuture
f_140003_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
m
entityTickingChunkFuture
field_13865
entityTickingFuture
f_140004_
private CompletableFuture<ChunkAccess>
n
chunkToSave
field_16428
savingFuture
f_140005_
private final DebugBuffer<ChunkHolder$ChunkSaveDebug>
o
chunkToSaveHistory
field_28806
actionStack
f_142984_
private int
p
oldTicketLevel
field_16432
lastTickLevel
f_140006_
private int
q
ticketLevel
field_13862
level
f_140007_
private int
r
queueLevel
field_17208
completedLevel
f_140008_
final ChunkPos
s
pos
field_13864
pos
f_140009_
private boolean
t
hasChangedSections
field_25803
pendingBlockUpdates
f_140010_
private final it.unimi.dsi.fastutil.shorts.ShortSet[]
u
changedBlocksPerSection
field_25804
blockUpdatesBySection
f_140011_
private final BitSet
v
blockChangedLightSectionFilter
field_13871
blockLightUpdateBits
f_140012_
private final BitSet
w
skyChangedLightSectionFilter
field_13870
skyLightUpdateBits
f_140013_
private final LevelLightEngine
x
lightEngine
field_13863
lightingProvider
f_140014_
private final ChunkHolder$LevelChangeListener
y
onLevelChange
field_17209
levelUpdateListener
f_140015_
private final ChunkHolder$PlayerProvider
z
playerProvider
field_17210
playersWatchingChunkProvider
f_140016_
private boolean
A
wasAccessibleSinceLastSave
field_19238
accessible
f_140017_
private boolean
B
resendLight
field_26744
noLightingUpdates
f_140018_
private CompletableFuture<Void>
C
pendingFullStateConfirmation
field_26930
field_26930
f_142981_

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(cxn 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(cxn 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 LevelChunk
e()
getFullChunk()
method_41205()
method_41205()
m_212234_()
public ChunkStatus
f()
getLastAvailableStatus()
method_23270()
getCurrentStatus()
m_140088_()
public ChunkAccess
g()
getLastAvailable()
method_14010()
getCurrentChunk()
m_140089_()
public CompletableFuture<ChunkAccess>
h()
getChunkToSave()
method_14000()
getSavingFuture()
m_140090_()
public void
a(gt arg0)
blockChanged(BlockPos arg0)
method_14002(class_2338 arg0)
markForBlockUpdate(BlockPos pos)
m_140056_(C_4675_ arg0)
public void
a(chg 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(cxt arg0)
broadcastChanges(LevelChunk arg0)
method_14006(class_2818 arg0)
flushUpdates(WorldChunk chunk)
m_140054_(C_2137_ arg0)
private void
a(cgx arg0, gt arg1, cvo arg2)
broadcastBlockEntityIfNeeded(Level arg0, BlockPos arg1, BlockState arg2)
method_30311(class_1937 arg0, class_2338 arg1, class_2680 arg2)
tryUpdateBlockEntityAt(World world, BlockPos pos, BlockState state)
m_140032_(C_1596_ p_140034_, C_4675_ p_140035_, C_2064_ arg2)
private void
a(cgx arg0, gt arg1)
broadcastBlockEntity(Level arg0, BlockPos arg1)
method_14009(class_1937 arg0, class_2338 arg1)
sendBlockEntityUpdatePacket(World world, BlockPos pos)
m_140029_(C_1596_ p_140031_, C_4675_ arg1)
private void
a(tc<?> arg0, boolean arg1)
broadcast(Packet<?> arg0, boolean arg1)
method_13992(class_2596<?> arg0, boolean arg1)
sendPacketToPlayersWatching(Packet<?> packet, boolean onlyOnWatchDistanceEdge)
m_140063_(C_5028_<?> p_140065_, boolean arg1)
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
a(cxn arg0, aft 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 cxj, afs$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_5424_>> p_143019_, String arg1)
public ChunkHolder$FullChunkStatus
i()
getFullStatus()
method_23271()
getLevelType()
m_140091_()
public ChunkPos
j()
getPos()
method_13994()
getPos()
m_140092_()
public int
k()
getTicketLevel()
method_14005()
getLevel()
m_140093_()
public int
l()
getQueueLevel()
method_17208()
getCompletedLevel()
m_140094_()
private void
d(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(aft arg0, CompletableFuture<com.mojang.datafixers.util.Either<cxt, afs$a>> arg1, Executor arg2, afs$c arg3)
scheduleFullChunkPromotion(ChunkMap arg0, CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>> arg1, Executor arg2, ChunkHolder$FullChunkStatus arg3)
method_31409(class_3898 arg0, CompletableFuture<com.mojang.datafixers.util.Either<class_2818, class_3193$class_3724>> arg1, Executor arg2, class_3193$class_3194 arg3)
method_31409(ThreadedAnvilChunkStorage arg0, CompletableFuture<com.mojang.datafixers.util.Either<WorldChunk, ChunkHolder$Unloaded>> arg1, Executor arg2, ChunkHolder$LevelType arg3)
m_142998_(C_5429_ p_143000_, CompletableFuture<com.mojang.datafixers.util.Either<C_2137_, C_5424_>> p_143001_, Executor p_143002_, C_5426_ arg3)
private void
a(aft arg0, afs$c arg1)
demoteFullChunk(ChunkMap arg0, ChunkHolder$FullChunkStatus arg1)
method_31408(class_3898 arg0, class_3193$class_3194 arg1)
method_31408(ThreadedAnvilChunkStorage arg0, ChunkHolder$LevelType arg1)
m_142992_(C_5429_ p_142994_, C_5426_ arg1)
protected void
a(aft arg0, Executor arg1)
updateFutures(ChunkMap arg0, Executor arg1)
method_14007(class_3898 arg0, Executor arg1)
tick(ThreadedAnvilChunkStorage chunkStorage, Executor arg1)
m_143003_(C_5429_ p_143005_, Executor arg1)
public static ChunkStatus
b(int arg0)
getStatus(int arg0)
method_14011(int arg0)
getTargetStatusForLevel(int level)
m_140074_(int p_140075_)
public static ChunkHolder$FullChunkStatus
c(int arg0)
getFullChunkStatus(int arg0)
method_14008(int arg0)
getLevelType(int distance)
m_140083_(int p_140084_)
public boolean
m()
wasAccessibleSinceLastSave()
method_20384()
isAccessible()
m_140095_()
public void
n()
refreshAccessibility()
method_20385()
updateAccessibleStatus()
m_140096_()
public void
a(cxs arg0)
replaceProtoChunk(ImposterProtoChunk arg0)
method_20456(class_2821 arg0)
setCompletedChunk(ReadOnlyChunk chunk)
m_140052_(C_2136_ arg0)
public List<com.mojang.datafixers.util.Pair<ChunkStatus, CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>>>
o()
getAllFutures()
method_40066()
collectFuturesByStatus()
m_202980_()