Interface InteractionEventDispatcher.RegistryHandler<T>

Enclosing class:
InteractionEventDispatcher
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 InteractionEventDispatcher.RegistryHandler<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(T value, net.minecraft.core.Holder<InteractionEvent> event, StoredContext context)
    Handles a registry value that matched the fired interaction event.
  • Method Details

    • handle

      void handle(T value, net.minecraft.core.Holder<InteractionEvent> event, StoredContext context)
      Handles a registry value that matched the fired interaction event.
      Parameters:
      value - the matching registry value
      event - the interaction event that fired
      context - the context collected for the interaction event