Interface RegistryIdRemapCallback<T>
- Type Parameters:
T
- The registry type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The remapping process functions as follows:
- RegistryEntryRemovedCallbacks are called to remove any objects culled in the process, with the old numeric ID.
- RegistryIdRemapCallback is emitted to allow remapping the IDs of objects still present.
- RegistryEntryAddedCallbacks are called to add any objects added in the process, with the new numeric ID.
RegistryIdRemapCallback is called on every remapping operation, if you want to do your own processing in one swoop (say, rebuild the ID map from scratch).
Generally speaking, a remap can only cause object *removals*; object *additions* are necessary to reverse remaps.
-
Nested Class Summary
-
Method Summary
-
Method Details
-
onRemap
-
event
-