Interface ItemRegistryChangeListener

  • All Superinterfaces:
    RegistryChangeListener<Item>
    All Known Implementing Classes:
    ScriptItemRefresher

    @NonNullByDefault
    public interface ItemRegistryChangeListener
    extends RegistryChangeListener<Item>
    This is a listener interface which should be implemented where ever the item registry is used in order to be notified of any dynamic changes in the provided items.
    Author:
    Kai Kreuzer - Initial contribution
    • Method Detail

      • allItemsChanged

        void allItemsChanged​(Collection<String> oldItemNames)
        Notifies the listener that all items in the registry have changed and thus should be reloaded.
        Parameters:
        oldItemNames - a collection of all previous item names, so that references can be removed