blob: 37acfd9d44724fee2027ea6a837ae752ffb0517a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package moe.nea.firmament.util.accessors
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()
)
}
|