@Repeatable(value=NumericFilter.Numerics.class) @Retention(value=RUNTIME) @Target(value=METHOD) public @interface NumericFilter
ClientReceiveNumericEvent. This annotation can be repeated.
The below code only listens to numeric 1:
@NumericFilter(1)
@Handler)
public void numeric1(ClientReceiveNumericEvent event) {
this.currentNick = event.getParameters()[0];
}
| Modifier and Type | Required Element and Description |
|---|---|
int |
value
The numeric to listen to.
|
Copyright © 2013–2021 Kitteh. All rights reserved.