blob: a88f7f33724ca9d55bb1ab0a7192c936a007b124 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
package at.hannibal2.skyhanni.api.event
import at.hannibal2.skyhanni.data.IslandType
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class HandleEvent(
/**
* If the event should only be received while on SkyBlock.
*/
val onlyOnSkyblock: Boolean = false,
/**
* If the event should only be received while on a specific skyblock island.
* To specify multiple islands, use [onlyOnIslands] instead.
*/
val onlyOnIsland: IslandType = IslandType.ANY,
/**
* If the event should only be received while being on specific skyblock islands.
* To specify only one island, use [onlyOnIsland] instead.
*/
vararg val onlyOnIslands: IslandType = [],
/**
* The priority of when the event will be called, lower priority will be called first, see the companion object.
*/
val priority: Int = 0,
/**
* If the event is cancelled & receiveCancelled is true, then the method will still invoke.
*/
val receiveCancelled: Boolean = false,
) {
companion object {
const val HIGHEST = -2
const val HIGH = -1
const val LOW = 1
const val LOWEST = 2
}
}
|