blob: e565850027a47837f451f7f45f026c8ac4dfa15f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package moe.nea.firmament.util.customgui
import net.minecraft.world.inventory.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()
|