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 Object
  • Field Details

    • 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 Details

    • LightDataMap

      protected LightDataMap(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray> p_i51299_1_)
  • Method Details

    • 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()