aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/events/SkyblockServerUpdateEvent.kt
blob: 541b4c682568c3a25d8815fb8edf59db2fb1615c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package moe.nea.notenoughupdates.events

import moe.nea.notenoughupdates.util.Locraw

/**
 * This event gets published whenever `/locraw` is queried and HyPixel returns a location different to the old one.
 *
 * **N.B.:** This event may get fired multiple times while on the server (for example, first to null, then to the
 * correct location).
 */
data class SkyblockServerUpdateEvent(val oldLocraw: Locraw?, val newLocraw: Locraw?) : NEUEvent() {
    companion object : NEUEventBus<SkyblockServerUpdateEvent>()
}