Package net.minecraft.world.lighting
Class LightDataMap<M extends LightDataMap<M>>
- java.lang.Object
-
- net.minecraft.world.lighting.LightDataMap<M>
-
- Direct Known Subclasses:
BlockLightStorage.StorageMap
,SkyLightStorage.StorageMap
public abstract class LightDataMap<M extends LightDataMap<M>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
cacheEnabled
private long[]
lastSectionKeys
private NibbleArray[]
lastSections
protected it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray>
map
-
Constructor Summary
Constructors Modifier Constructor Description protected
LightDataMap(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray> p_i51299_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clearCache()
abstract M
copy()
void
copyDataLayer(long p_215641_1_)
void
disableCache()
NibbleArray
getLayer(long p_215638_1_)
boolean
hasLayer(long p_215642_1_)
NibbleArray
removeLayer(long p_223130_1_)
void
setLayer(long p_215640_1_, NibbleArray p_215640_3_)
-
-
-
Field Detail
-
lastSectionKeys
private final long[] lastSectionKeys
-
lastSections
private final NibbleArray[] lastSections
-
cacheEnabled
private boolean cacheEnabled
-
map
protected final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray> map
-
-
Constructor Detail
-
LightDataMap
protected LightDataMap(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray> p_i51299_1_)
-
-
Method Detail
-
copy
public abstract M copy()
-
copyDataLayer
public void copyDataLayer(long p_215641_1_)
-
hasLayer
public boolean hasLayer(long p_215642_1_)
-
getLayer
@Nullable public NibbleArray getLayer(long p_215638_1_)
-
removeLayer
@Nullable public NibbleArray removeLayer(long p_223130_1_)
-
setLayer
public void setLayer(long p_215640_1_, NibbleArray p_215640_3_)
-
clearCache
public void clearCache()
-
disableCache
public void disableCache()
-
-