RuneHive-Game
Loading...
Searching...
No Matches
PacketListenerMeta.java
Go to the documentation of this file.
1package com.runehive.net.packet;
2
3import 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
13public @interface PacketListenerMeta {
14
15 /**
16 * The client-server packet identifiers that this annotated listener can listen to.
17 */
18 int[] value() default {};
19}
An annotation that describes what client -> server packets a PacketListener can listen to.
int[] value() default
The client-server packet identifiers that this annotated listener can listen to.