net.minecraft.world.chunk

public abstract class ChunkToNibbleArrayMap<M extends ChunkToNibbleArrayMap<M>>

net.minecraft.world.level.lighting.DataLayerStorageMap
net.minecraft.class_3556
net.minecraft.world.chunk.ChunkToNibbleArrayMap

Field summary

Modifier and TypeField
private static final int
CACHE_SIZE
field_31705
field_31705
private final long[]
lastSectionKeys
field_15789
cachePositions
private final ChunkNibbleArray[]
lastSections
field_15790
cacheArrays
private boolean
cacheEnabled
field_16447
cacheEnabled
protected final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<ChunkNibbleArray>
map
field_15791
arrays

Constructor summary

ModifierConstructor
protected (it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<ChunkNibbleArray> arrays)

Method summary

Modifier and TypeMethod
public abstract M
copy()
method_15504()
copy()
public ChunkNibbleArray
copyDataLayer(long sectionNode)
method_15502(long arg0)
replaceWithCopy(long pos)
public boolean
hasLayer(long sectionNode)
method_15503(long arg0)
containsKey(long chunkPos)
public ChunkNibbleArray
getLayer(long sectionNode)
method_15501(long arg0)
get(long chunkPos)
public ChunkNibbleArray
removeLayer(long sectionNode)
method_15500(long arg0)
removeChunk(long chunkPos)
public void
setLayer(long sectionNode, DataLayer layer)
method_15499(long arg0, class_2804 arg1)
put(long pos, ChunkNibbleArray data)
public void
clearCache()
method_15505()
clearCache()
public void
disableCache()
method_16188()
disableCache()