net.minecraft.world.level.chunk.storage

public class SectionStorage<R, P>

implements AutoCloseable

ebk
net.minecraft.world.level.chunk.storage.SectionStorage
net.minecraft.class_4180
net.minecraft.unmapped.C_suaauzrg
net.minecraft.world.storage.SerializingRegionBasedStorage
net.minecraft.world.storage.SerializingRegionBasedStorage
net.minecraft.src.C_2174_
net.minecraft.world.level.chunk.storage.RegionFileSection

Field summary

Modifier and TypeField
static final org.slf4j.Logger
a
LOGGER
field_18691
f_hkdspeev
LOGGER
LOGGER
f_63772_
private static final String
b
SECTIONS_TAG
field_31427
f_czqrqwxl
SECTIONS_KEY
SECTIONS_KEY
f_156617_
private final SimpleRegionStorage
d
simpleRegionStorage
field_48759
f_vuuorrbx
storageAccess
f_314111_
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<Optional<R>>
e
storage
field_18692
f_fonmahly
loadedElements
loadedElements
f_63774_
private final it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet
f
dirtyChunks
field_18693
f_pyctdeag
unsavedElements
f_346808_
private final com.mojang.serialization.Codec<P>
g
codec
field_24750
f_bmqpxoca
codec
codecFactory
f_63776_
private final Function<R, P>
h
packer
field_52647
f_utifqdxn
serializer
f_346571_
private final BiFunction<P, Runnable, R>
i
unpacker
field_52648
f_yaogiblt
deserializer
f_348005_
private final Function<Runnable, R>
j
factory
field_18695
f_fivzsmwg
factory
factory
f_63777_
private final RegistryAccess
k
registryAccess
field_39315
f_akvwwboh
registryManager
registryManager
f_223507_
private final ChunkIOErrorReporter
l
errorReporter
field_52227
f_zlcrayvd
errorHandler
f_337344_
protected final LevelHeightAccessor
c
levelHeightAccessor
field_27240
f_watghctx
world
world
f_156618_
private final it.unimi.dsi.fastutil.longs.LongSet
m
loadedChunks
field_52649
f_cbdmvnwm
loadedChunks
f_348992_
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<CompletableFuture<Optional<SectionStorage$PackedChunk<P>>>>
n
pendingLoads
field_52650
f_zrorfznt
pendingLoads
f_348758_
private final Object
o
loadLock
field_52651
f_mdwdzfuw
lock
f_347065_

Constructor summary

ModifierConstructor
public (SimpleRegionStorage storageAccess, com.mojang.serialization.Codec<P> codec, Function<R, P> serializer, BiFunction<P, Runnable, R> deserializer, Function<Runnable, R> factory, RegistryAccess registryManager, ChunkIOErrorReporter errorHandler, LevelHeightAccessor world)

Method summary

Modifier and TypeMethod
protected void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_19290(BooleanSupplier arg0)
m_emvuwkbz(BooleanSupplier arg0)
tick(BooleanSupplier shouldKeepTicking)
tick(BooleanSupplier shouldKeepTicking)
m_6202_(BooleanSupplier arg0)
private void
c()
unpackPendingLoads()
method_61786()
m_wbdcpapn()
tickPendingLoads()
m_353070_()
public void
a()
flushAll()
method_61775()
m_sluhewzk()
save()
m_351766_()
public boolean
b()
hasWork()
method_40020()
m_uvsedbqc()
hasUnsavedElements()
hasUnsavedElements()
m_202164_()
protected Optional<R>
c(long arg0)
get(long arg0)
method_19293(long arg0)
m_oynlrnhu(long arg0)
getIfLoaded(long pos)
getIfLoaded(long pos)
m_63818_(long arg0)
protected Optional<R>
d(long arg0)
getOrLoad(long arg0)
method_19294(long arg0)
m_yvchsmco(long arg0)
get(long pos)
get(long pos)
m_63823_(long arg0)
protected boolean
e(long arg0)
outsideStoredRange(long arg0)
method_19292(long arg0)
m_ikyichfy(long arg0)
isPosInvalid(long pos)
isPosInvalid(long pos)
m_156630_(long arg0)
protected R
f(long arg0)
getOrCreate(long arg0)
method_19295(long arg0)
m_ejbrptcm(long arg0)
getOrCreate(long pos)
getOrCreate(long pos)
m_63827_(long arg0)
public CompletableFuture<?>
a(dgo arg0)
prefetch(ChunkPos arg0)
method_61780(class_1923 arg0)
m_qxezhsza(C_ynrszrtu arg0)
load(ChunkPos chunkPos)
m_355658_(C_1560_ arg0)
private void
c(dgo arg0)
unpackChunk(ChunkPos arg0)
method_61787(class_1923 arg0)
m_llepdkpc(C_ynrszrtu arg0)
loadAndWait(ChunkPos chunkPos)
m_357263_(C_1560_ arg0)
private CompletableFuture<Optional<SectionStorage$PackedChunk<P>>>
d(dgo arg0)
tryRead(ChunkPos arg0)
method_20621(class_1923 arg0)
m_lxzqfara(C_ynrszrtu arg0)
loadNbt(ChunkPos chunkPos)
loadNbt(ChunkPos pos)
m_223532_(C_1560_ arg0)
private void
a(dgo arg0, ebk$a<P> arg1)
unpackChunk(ChunkPos arg0, SectionStorage$PackedChunk<P> arg1)
method_61782(class_1923 arg0, class_4180$class_9897<P> arg1)
m_cuvdkgyl(C_ynrszrtu arg0, C_suaauzrg$C_qpoangpo<P> arg1)
onLoad(ChunkPos chunkPos, SerializingRegionBasedStorage$LoadResult<P> result)
m_354933_(C_1560_ p_365518_, C_2174_$C_345931_<P> arg1)
private void
e(dgo arg0)
writeChunk(ChunkPos arg0)
method_20370(class_1923 arg0)
m_oaifxhut(C_ynrszrtu arg0)
save(ChunkPos pos)
m_354953_(C_1560_ arg0)
private <T> com.mojang.serialization.Dynamic<T>
a(dgo arg0, com.mojang.serialization.DynamicOps<T> arg1)
writeChunk(ChunkPos arg0, com.mojang.serialization.DynamicOps<T> arg1)
method_20367(class_1923 arg0, com.mojang.serialization.DynamicOps<T> arg1)
m_biaxfgvm(C_ynrszrtu arg0, com.mojang.serialization.DynamicOps<T> arg1)
serialize(ChunkPos chunkPos, com.mojang.serialization.DynamicOps<T> ops)
m_biaxfgvm(ChunkPos arg0, com.mojang.serialization.DynamicOps<T> ops)
m_354904_(C_1560_ p_361006_, com.mojang.serialization.DynamicOps<T> arg1)
private static long
a(dgo arg0, int arg1)
getKey(ChunkPos arg0, int arg1)
method_33637(class_1923 arg0, int arg1)
m_erxlnqps(C_ynrszrtu arg0, int arg1)
chunkSectionPosAsLong(ChunkPos chunkPos, int y)
toChunkPosLong(ChunkPos pos, int y)
m_156627_(C_1560_ p_156628_, int p_156629_)
protected void
b(long arg0)
onSectionLoad(long arg0)
method_19291(long arg0)
m_iyehricr(long arg0)
onLoad(long pos)
onLoad(long pos)
m_5839_(long arg0)
protected void
a(long arg0)
setDirty(long arg0)
method_19288(long arg0)
m_ebhrilfy(long arg0)
onUpdate(long pos)
onUpdate(long pos)
m_5838_(long arg0)
static int
a(com.mojang.serialization.Dynamic<?> arg0)
getVersion(com.mojang.serialization.Dynamic<?> arg0)
method_20369(com.mojang.serialization.Dynamic<?> arg0)
m_jsxrwbak(com.mojang.serialization.Dynamic<?> arg0)
getDataVersion(com.mojang.serialization.Dynamic<?> dynamic)
getDataVersion(com.mojang.serialization.Dynamic<?> dynamic)
m_63805_(com.mojang.serialization.Dynamic<?> p_63806_)
public void
b(dgo arg0)
flush(ChunkPos arg0)
method_20436(class_1923 arg0)
m_zedncrpm(C_ynrszrtu arg0)
saveChunk(ChunkPos pos)
saveChunk(ChunkPos pos)
m_63796_(C_1560_ arg0)
public void
close()
close()
close()