blob: 42a6ffec229fa133a71ef0792ff4288272deccee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
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>()
}
|