net.minecraft.server.level

public class ChunkHolder

abd
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 CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
d
UNLOADED_LEVEL_CHUNK_FUTURE
field_16429
UNLOADED_WORLD_CHUNK_FUTURE
f_139998_
private static final List<ChunkStatus>
e
CHUNK_STATUSES
field_13868
CHUNK_STATUSES
f_139999_
private static final ChunkHolder$FullChunkStatus[]
f
FULL_CHUNK_STATUSES
field_13873
LEVEL_TYPES
f_140000_
private static final int
g
BLOCKS_BEFORE_RESEND_FUDGE
field_29668
field_29668
f_142982_
private final AtomicReferenceArray<CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>>
h
futures
field_16425
futuresByStatus
f_140001_
private final LevelHeightAccessor
i
levelHeightAccessor
field_26929
world
f_142983_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
j
fullChunkFuture
field_16431
accessibleFuture
f_140002_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
k
tickingChunkFuture
field_19333
tickingFuture
f_140003_
private volatile CompletableFuture<com.mojang.datafixers.util.Either<LevelChunk, ChunkHolder$ChunkLoadingFailure>>
l
entityTickingChunkFuture
field_13865
entityTickingFuture
f_140004_
private CompletableFuture<ChunkAccess>
m
chunkToSave
field_16428
savingFuture
f_140005_
private final DebugBuffer<ChunkHolder$ChunkSaveDebug>
n
chunkToSaveHistory
field_28806
actionStack
f_142984_
private int
o
oldTicketLevel
field_16432
lastTickLevel
f_140006_
private int
p
ticketLevel
field_13862
level
f_140007_
private int
q
queueLevel
field_17208
completedLevel
f_140008_
final ChunkPos
r
pos
field_13864
pos
f_140009_
private boolean
s
hasChangedSections
field_25803
pendingBlockUpdates
f_140010_
private final it.unimi.dsi.fastutil.shorts.ShortSet[]
t
changedBlocksPerSection
field_25804
blockUpdatesBySection
f_140011_
private final BitSet
u
blockChangedLightSectionFilter
field_13871
blockLightUpdateBits
f_140012_
private final BitSet
v
skyChangedLightSectionFilter
field_13870
skyLightUpdateBits
f_140013_
private final LevelLightEngine
w
lightEngine
field_13863
lightingProvider
f_140014_
private final ChunkHolder$LevelChangeListener
x
onLevelChange
field_17209
levelUpdateListener
f_140015_
private final ChunkHolder$PlayerProvider
y
playerProvider
field_17210
playersWatchingChunkProvider
f_140016_
private boolean
z
wasAccessibleSinceLastSave
field_19238
accessible
f_140017_
private boolean
A
resendLight
field_26744
field_26744
f_140018_
private CompletableFuture<Void>
B
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(cmp arg0)
getFutureIfPresentUnchecked(ChunkStatus arg0)
method_16146(class_2806 arg0)
getFutureFor(ChunkStatus leastStatus)
m_140047_(C_2126_ arg0)
getStatusFutureUnchecked(ChunkStatus arg0)
public CompletableFuture<com.mojang.datafixers.util.Either<ChunkAccess, ChunkHolder$ChunkLoadingFailure>>
b(cmp 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_()
getChunk()
public ChunkStatus
e()
getLastAvailableStatus()
method_23270()
getCurrentStatus()
m_140088_()
public ChunkAccess
f()
getLastAvailable()
method_14010()
getCurrentChunk()
m_140089_()
public CompletableFuture<ChunkAccess>
g()
getChunkToSave()
method_14000()
getSavingFuture()
m_140090_()
getChunkSave()
public void
a(gg arg0)
blockChanged(BlockPos arg0)
method_14002(class_2338 arg0)
markForBlockUpdate(BlockPos pos)
m_140056_(C_4675_ arg0)
public void
a(bwy 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(cmw arg0)
broadcastChanges(LevelChunk arg0)
method_14006(class_2818 arg0)
flushUpdates(WorldChunk chunk)
m_140054_(C_2137_ arg0)
private void
a(bwp arg0, gg arg1, cks 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(bwp arg0, gg 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(pk<?> 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(cmp arg0, abe 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)
private void
a(CompletableFuture<? extends com.mojang.datafixers.util.Either<? extends cml, abd$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 ChunkHolder$FullChunkStatus
h()
getFullStatus()
method_23271()
getLevelType()
m_140091_()
public ChunkPos
i()
getPos()
method_13994()
getPos()
m_140092_()
public int
j()
getTicketLevel()
method_14005()
getLevel()
m_140093_()
getTicketLevel()
public int
k()
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(abe arg0, CompletableFuture<com.mojang.datafixers.util.Either<cmw, abd$a>> arg1, Executor arg2, abd$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_5422_$C_5424_>> p_143001_, Executor p_143002_, C_5422_$C_5426_ arg3)
private void
a(abe arg0, abd$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_5422_$C_5426_ arg1)
protected void
a(abe 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_)
getChunkStatus(int arg0)
public static ChunkHolder$FullChunkStatus
c(int arg0)
getFullChunkStatus(int arg0)
method_14008(int arg0)
getLevelType(int distance)
m_140083_(int p_140084_)
getChunkState(int arg0)
public boolean
l()
wasAccessibleSinceLastSave()
method_20384()
isAccessible()
m_140095_()
hasBeenLoaded()
public void
m()
refreshAccessibility()
method_20385()
updateAccessibleStatus()
m_140096_()
public void
a(cmv arg0)
replaceProtoChunk(ImposterProtoChunk arg0)
method_20456(class_2821 arg0)
setCompletedChunk(ReadOnlyChunk chunk)
m_140052_(C_2136_ arg0)