Class IdMapperTracker<V,OV>
java.lang.Object
net.fabricmc.fabric.impl.registry.sync.trackers.IdMapperTracker<V,OV>
- All Implemented Interfaces:
RegistryEntryAddedCallback<V>, RegistryIdRemapCallback<V>
public class IdMapperTracker<V,OV>
extends Object
implements RegistryEntryAddedCallback<V>, RegistryIdRemapCallback<V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface RegistryIdRemapCallback
RegistryIdRemapCallback.RemapState<T> -
Method Summary
Modifier and TypeMethodDescriptionvoidonEntryAdded(int rawId, net.minecraft.resources.Identifier id, V object) Called when a new entry is added to the registry.voidstatic <V,OV> void register(net.minecraft.core.Registry<V> registry, String name, net.minecraft.core.IdMapper<OV> mappers)
-
Method Details
-
register
public static <V,OV> void register(net.minecraft.core.Registry<V> registry, String name, net.minecraft.core.IdMapper<OV> mappers) -
onEntryAdded
Description copied from interface:RegistryEntryAddedCallbackCalled when a new entry is added to the registry.- Specified by:
onEntryAddedin interfaceRegistryEntryAddedCallback<V>- Parameters:
rawId- the raw id of the entryid- the identifier of the entryobject- the object that was added
-
onRemap
- Specified by:
onRemapin interfaceRegistryIdRemapCallback<V>
-