Class Int2ObjectMapTracker<V,OV>

java.lang.Object
net.fabricmc.fabric.impl.registry.sync.trackers.Int2ObjectMapTracker<V,OV>
All Implemented Interfaces:
RegistryEntryAddedCallback<V>, RegistryIdRemapCallback<V>

public class Int2ObjectMapTracker<V,OV> extends Object implements RegistryEntryAddedCallback<V>, RegistryIdRemapCallback<V>
  • Method Details

    • register

      public static <V,OV> void register(net.minecraft.core.Registry<V> registry, String name, it.unimi.dsi.fastutil.ints.Int2ObjectMap<OV> mappers)
    • onEntryAdded

      public void onEntryAdded(int rawId, net.minecraft.resources.Identifier id, V object)
      Description copied from interface: RegistryEntryAddedCallback
      Called when a new entry is added to the registry.
      Specified by:
      onEntryAdded in interface RegistryEntryAddedCallback<V>
      Parameters:
      rawId - the raw id of the entry
      id - the identifier of the entry
      object - the object that was added
    • onRemap

      public void onRemap(RegistryIdRemapCallback.RemapState<V> state)
      Specified by:
      onRemap in interface RegistryIdRemapCallback<V>