Class ModelDataManager.Snapshot

java.lang.Object
net.neoforged.neoforge.client.model.data.ModelDataManager
net.neoforged.neoforge.client.model.data.ModelDataManager.Snapshot
Enclosing class:
ModelDataManager

@Internal public static final class ModelDataManager.Snapshot extends ModelDataManager
A snapshot of the active manager's state in the specified sections at the point in time when a chunk section was prepared for re-rendering. Holds an immutable copy of the applicable subset of the active manager's state.
  • Field Details

    • EMPTY

      public static final ModelDataManager.Snapshot EMPTY
    • modelDataCache

      private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<ModelData> modelDataCache
    • sectionMin

      private final long sectionMin
    • sectionMax

      private final long sectionMax
  • Constructor Details

    • Snapshot

      Snapshot(ModelDataManager.Active srcManager, int sectionMinX, int sectionMinY, int sectionMinZ, int sectionMaxX, int sectionMaxY, int sectionMaxZ)
    • Snapshot

      private Snapshot()
  • Method Details