Interface EventValue.NoValueChanger<E extends org.bukkit.event.Event,V>
- Type Parameters:
E- the event typeV- 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
-
Method Details
-
change
Applies a change to the given event instance without a value.- Parameters:
event- the event instance
-
change
Applies a change to the value for the given event instance.This implementation ignores the provided value and calls
change(Event).- Specified by:
changein interfaceEventValue.Changer<E extends org.bukkit.event.Event,V> - Parameters:
event- the event instancevalue- the value (ignored)
-