aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/util/customgui/CoordRememberingSlot.kt
blob: c61c711f6603c39d4bd1f98f828ae3146069aa67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package moe.nea.firmament.util.customgui

import net.minecraft.screen.slot.Slot

interface CoordRememberingSlot {
    fun rememberCoords_firmament()
    fun restoreCoords_firmament()
    fun getOriginalX_firmament(): Int
    fun getOriginalY_firmament(): Int
}

val Slot.originalX get() = (this as CoordRememberingSlot).getOriginalX_firmament()
val Slot.originalY get() = (this as CoordRememberingSlot).getOriginalY_firmament()