Interface EventValue.NoValueChanger<E extends org.bukkit.event.Event,V>

Type Parameters:
E - the event type
V - the value type
All Superinterfaces:
EventValue.Changer<E,V>
Enclosing interface:
EventValue<E extends org.bukkit.event.Event,V>
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 EventValue.NoValueChanger<E extends org.bukkit.event.Event,V> extends EventValue.Changer<E,V>
A changer that does not require a value to be passed (e.g. for Changer.ChangeMode.DELETE or Changer.ChangeMode.RESET).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    change(E event)
    Applies a change to the given event instance without a value.
    default void
    change(E event, V value)
    Applies a change to the value for the given event instance.
  • Method Details

    • change

      void change(E event)
      Applies a change to the given event instance without a value.
      Parameters:
      event - the event instance
    • change

      default void change(E event, V value)
      Applies a change to the value for the given event instance.

      This implementation ignores the provided value and calls change(Event).

      Specified by:
      change in interface EventValue.Changer<E extends org.bukkit.event.Event,V>
      Parameters:
      event - the event instance
      value - the value (ignored)