net.minecraft.server.level

public abstract class GenerationChunkHolder

aqn
net.minecraft.server.level.GenerationChunkHolder
net.minecraft.class_9761
net.minecraft.world.chunk.AbstractChunkHolder
net.minecraft.src.C_336526_
net.minecraft.server.level.GenerationChunkHolder

Field summary

Modifier and TypeField
private static final List<ChunkStatus>
a
CHUNK_STATUSES
field_51865
STATUSES
f_336881_
private static final ChunkResult<ChunkAccess>
e
NOT_DONE_YET
field_51869
NOT_DONE
f_337211_
public static final ChunkResult<ChunkAccess>
b
UNLOADED_CHUNK
field_51866
UNLOADED
f_337099_
public static final CompletableFuture<ChunkResult<ChunkAccess>>
c
UNLOADED_CHUNK_FUTURE
field_51867
UNLOADED_FUTURE
f_336731_
protected final ChunkPos
d
pos
field_51868
pos
f_336683_
private volatile ChunkStatus
f
highestAllowedStatus
field_51870
status
f_337682_
private final AtomicReference<ChunkStatus>
g
startedWork
field_51871
currentStatus
f_336967_
private final AtomicReferenceArray<CompletableFuture<ChunkResult<ChunkAccess>>>
h
futures
field_51872
chunkFuturesByStatus
f_337338_
private final AtomicReference<ChunkGenerationTask>
i
task
field_51873
chunkLoader
f_337182_
private final AtomicInteger
j
generationRefCount
field_51874
refCount
f_336999_

Constructor summary

ModifierConstructor
public (ChunkPos pos)

Method summary

Modifier and TypeMethod
public CompletableFuture<ChunkResult<ChunkAccess>>
a(dvz arg0, aqb arg1)
scheduleChunkGenerationTask(ChunkStatus arg0, ChunkMap arg1)
method_60458(class_2806 arg0, class_3898 arg1)
load(ChunkStatus requestedStatus, ServerChunkLoadingManager chunkLoadingManager)
m_340221_(C_313554_ p_343602_, C_5429_ arg1)
CompletableFuture<ChunkResult<ChunkAccess>>
a(dwc arg0, aqm arg1, azi<aqn> arg2)
applyStep(ChunkStep arg0, GeneratingChunkMap arg1, StaticCache2D<GenerationChunkHolder> arg2)
method_60461(class_9770 arg0, class_9760 arg1, class_9762<class_9761> arg2)
generate(ChunkGenerationStep step, ChunkLoadingManager chunkLoadingManager, BoundedRegionArray<AbstractChunkHolder> chunks)
m_340322_(C_336565_ p_342173_, C_336423_ p_343026_, C_336561_<C_336526_> arg2)
protected void
a(aqb arg0)
updateHighestAllowedStatus(ChunkMap arg0)
method_60454(class_3898 arg0)
updateStatus(ServerChunkLoadingManager chunkLoadingManager)
m_338906_(C_5429_ arg0)
public void
a(dvh arg0)
replaceProtoChunk(ImposterProtoChunk arg0)
method_60456(class_2821 arg0)
replaceWith(WrapperProtoChunk chunk)
m_338783_(C_2136_ arg0)
void
a(apy arg0)
removeTask(ChunkGenerationTask arg0)
method_60453(class_9759 arg0)
clearLoader(ChunkLoader loader)
m_340319_(C_336542_ arg0)
private void
a(aqb arg0, dvz arg1)
rescheduleChunkTask(ChunkMap arg0, ChunkStatus arg1)
method_60455(class_3898 arg0, class_2806 arg1)
createLoader(ServerChunkLoadingManager chunkLoadingManager, ChunkStatus requestedStatus)
m_340412_(C_5429_ p_343189_, C_313554_ arg1)
private CompletableFuture<ChunkResult<ChunkAccess>>
c(dvz arg0)
getOrCreateFuture(ChunkStatus arg0)
method_60464(class_2806 arg0)
getOrCreateFuture(ChunkStatus status)
m_339225_(C_313554_ arg0)
private void
a(dvz arg0, dvz arg1)
failAndClearPendingFuturesBetween(ChunkStatus arg0, ChunkStatus arg1)
method_60460(class_2806 arg0, class_2806 arg1)
unload(ChunkStatus from, ChunkStatus to)
m_340097_(C_313554_ p_345118_, C_313554_ arg1)
private void
a(int arg0, CompletableFuture<aqc<duy>> arg1)
failAndClearPendingFuture(int arg0, CompletableFuture<ChunkResult<ChunkAccess>> arg1)
method_60452(int arg0, CompletableFuture<class_9259<class_2791>> arg1)
unload(int statusIndex, CompletableFuture<OptionalChunk<Chunk>> previousFuture)
m_340213_(int p_345346_, CompletableFuture<C_313292_<C_2116_>> arg1)
private void
a(dvz arg0, duy arg1)
completeFuture(ChunkStatus arg0, ChunkAccess arg1)
method_60459(class_2806 arg0, class_2791 arg1)
completeChunkFuture(ChunkStatus status, Chunk chunk)
m_340017_(C_313554_ p_342625_, C_2116_ arg1)
private ChunkStatus
d(dvz arg0)
findHighestStatusWithPendingFuture(ChunkStatus arg0)
method_60465(class_2806 arg0)
getMaxPendingStatus(ChunkStatus checkUpperBound)
m_340390_(C_313554_ arg0)
private boolean
e(dvz arg0)
acquireStatusBump(ChunkStatus arg0)
method_60466(class_2806 arg0)
progressStatus(ChunkStatus nextStatus)
m_338928_(C_313554_ arg0)
private boolean
f(dvz arg0)
isStatusDisallowed(ChunkStatus arg0)
method_60467(class_2806 arg0)
cannotBeLoaded(ChunkStatus status)
m_340530_(C_313554_ arg0)
public void
m()
increaseGenerationRefCount()
method_60468()
incrementRefCount()
m_338841_()
public void
n()
decreaseGenerationRefCount()
method_60469()
decrementRefCount()
m_340129_()
public int
o()
getGenerationRefCount()
method_60470()
getRefCount()
m_339108_()
public ChunkAccess
a(dvz arg0)
getChunkIfPresentUnchecked(ChunkStatus arg0)
method_60457(class_2806 arg0)
getUncheckedOrNull(ChunkStatus requestedStatus)
m_338381_(C_313554_ arg0)
public ChunkAccess
b(dvz arg0)
getChunkIfPresent(ChunkStatus arg0)
method_60463(class_2806 arg0)
getOrNull(ChunkStatus requestedStatus)
m_340522_(C_313554_ arg0)
public ChunkAccess
p()
getLatestChunk()
method_60471()
getLatest()
m_340032_()
public ChunkStatus
q()
getPersistedStatus()
method_60472()
getActualStatus()
m_339972_()
public ChunkPos
r()
getPos()
method_60473()
getPos()
m_338581_()
public FullChunkStatus
s()
getFullStatus()
method_60474()
getLevelType()
m_339537_()
public abstract int
i()
getTicketLevel()
method_14005()
getLevel()
m_140093_()
public abstract int
j()
getQueueLevel()
method_17208()
getCompletedLevel()
m_140094_()
public List<com.mojang.datafixers.util.Pair<ChunkStatus, CompletableFuture<ChunkResult<ChunkAccess>>>>
t()
getAllFutures()
method_60475()
enumerateFutures()
m_340094_()
public ChunkStatus
u()
getLatestStatus()
method_60476()
getLatestStatus()
m_338382_()