Interface RegistryEvents.EntryAdded<V>

Type Parameters:
V - the entry type of the Registry being listened for
Enclosing class:
RegistryEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RegistryEvents.EntryAdded<V>
Functional interface to be implemented on callbacks for RegistryEvents.getEntryAddEvent(Registry).
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when an entry in this callback's event's Registry has an entry added or assigned.
  • Method Details

    • onAdded

      void onAdded(RegistryEntryContext<V> context)
      Called when an entry in this callback's event's Registry has an entry added or assigned.
      Parameters:
      context - an object containing information regarding the registry, entry object, and identifier of the entry being registered