RuneHive-Game
Loading...
Searching...
No Matches
PacketListenerMeta.java
Go to the documentation of this file.
1
package
com.runehive.net.packet;
2
3
import
java.lang.annotation.*;
4
5
/**
6
* An annotation that describes what client -> server packets a {@link PacketListener} can listen to.
7
*
8
* @author nshusa
9
**/
10
@Retention(RetentionPolicy.RUNTIME)
11
@Target(ElementType.TYPE)
12
@Inherited
13
public
@interface
PacketListenerMeta
{
14
15
/**
16
* The client-server packet identifiers that this annotated listener can listen to.
17
*/
18
int
[]
value
() default {};
19
}
com.runehive.net.packet.PacketListenerMeta
An annotation that describes what client -> server packets a PacketListener can listen to.
Definition
PacketListenerMeta.java:13
com.runehive.net.packet.PacketListenerMeta.value
int[] value() default
The client-server packet identifiers that this annotated listener can listen to.
Definition
PacketListenerMeta.java:18