Class DataLayerStorageMap<M extends DataLayerStorageMap<M>>

java.lang.Object
net.minecraft.world.level.lighting.DataLayerStorageMap<M>
Direct Known Subclasses:
BlockLightSectionStorage.BlockDataLayerStorageMap, SkyLightSectionStorage.SkyDataLayerStorageMap

public abstract class DataLayerStorageMap<M extends DataLayerStorageMap<M>> extends Object
  • Field Details

    • CACHE_SIZE

      private static final int CACHE_SIZE
      See Also:
      Constant Field Values
    • lastSectionKeys

      private final long[] lastSectionKeys
    • lastSections

      private final DataLayer[] lastSections
    • cacheEnabled

      private boolean cacheEnabled
    • map

      protected final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<DataLayer> map
  • Constructor Details

    • DataLayerStorageMap

      protected DataLayerStorageMap(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<DataLayer> p_75523_)
  • Method Details

    • copy

      public abstract M copy()
    • copyDataLayer

      public void copyDataLayer(long p_75525_)
    • hasLayer

      public boolean hasLayer(long p_75530_)
    • getLayer

      @Nullable public DataLayer getLayer(long p_75533_)
    • removeLayer

      @Nullable public DataLayer removeLayer(long p_75536_)
    • setLayer

      public void setLayer(long p_75527_, DataLayer p_75528_)
    • clearCache

      public void clearCache()
    • disableCache

      public void disableCache()