blob: ec64f31fd0ad07bac48f06a9d134b74a2ec7c7f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package moe.nea.firmament.util
import me.shedaniel.math.Rectangle
import moe.nea.firmament.mixins.accessor.AccessorHandledScreen
import net.minecraft.client.gui.screen.ingame.HandledScreen
fun HandledScreen<*>.getRectangle(): Rectangle {
this as AccessorHandledScreen
return Rectangle(
getX_Firmament(),
getY_Firmament(),
getBackgroundWidth_Firmament(),
getBackgroundHeight_Firmament()
)
}
|