Class ModelDataManager.Snapshot
java.lang.Object
net.neoforged.neoforge.client.model.data.ModelDataManager
net.neoforged.neoforge.client.model.data.ModelDataManager.Snapshot
- Enclosing class:
 - 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.
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.model.data.ModelDataManager
ModelDataManager.Active, ModelDataManager.Snapshot - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModelDataManager.Snapshotprivate final it.unimi.dsi.fastutil.longs.Long2ObjectMap<ModelData>private final longprivate final long - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSnapshot()(package private)Snapshot(ModelDataManager.Active srcManager, int sectionMinX, int sectionMinY, int sectionMinZ, int sectionMaxX, int sectionMaxY, int sectionMaxZ)  - 
Method Summary
Modifier and TypeMethodDescription@Nullable ModelDataReturns theModelDatastored for the given position ornullif none is present.getAtOrEmpty(BlockPos pos) Returns theModelDatastored for the given position orModelData.EMPTYif none is present.snapshotSectionRegion(int sectionMinX, int sectionMinY, int sectionMinZ, int sectionMaxX, int sectionMaxY, int sectionMaxZ) Snapshot the state of this manager for all sections in the volume specified by the given section coordinates.Methods inherited from class net.neoforged.neoforge.client.model.data.ModelDataManager
onChunkUnload 
- 
Field Details
- 
EMPTY
 - 
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
- 
getAt
Description copied from class:ModelDataManagerReturns theModelDatastored for the given position ornullif none is present.- Specified by:
 getAtin classModelDataManager- Parameters:
 pos- The position to query- Returns:
 - the 
ModelDatastored for the given position ornullif none is present 
 - 
getAtOrEmpty
Description copied from class:ModelDataManagerReturns theModelDatastored for the given position orModelData.EMPTYif none is present.- Specified by:
 getAtOrEmptyin classModelDataManager- Parameters:
 pos- The position to query- Returns:
 - the 
ModelDatastored for the given position orModelData.EMPTYif none is present 
 - 
snapshotSectionRegion
public ModelDataManager.Snapshot snapshotSectionRegion(int sectionMinX, int sectionMinY, int sectionMinZ, int sectionMaxX, int sectionMaxY, int sectionMaxZ) Description copied from class:ModelDataManagerSnapshot the state of this manager for all sections in the volume specified by the given section coordinates.- Specified by:
 snapshotSectionRegionin classModelDataManager
 
 -