aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events/HandledScreenPushREIEvent.kt
blob: 1bb495a4b77966d37fa77210a7d5ee2486b0bea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package moe.nea.firmament.events

import me.shedaniel.math.Rectangle
import net.minecraft.client.gui.screen.ingame.HandledScreen

data class HandledScreenPushREIEvent(
    val screen: HandledScreen<*>,
    val rectangles: MutableList<Rectangle> = mutableListOf()
) : FirmamentEvent() {

    fun block(rectangle: Rectangle) {
        rectangles.add(rectangle)
    }

    companion object : FirmamentEventBus<HandledScreenPushREIEvent>()
}