blob: 563f0f24e529105cca7a4a12fd281e29857f26d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package com.ambientaddons.events
import net.minecraft.client.gui.inventory.GuiContainer
import net.minecraft.inventory.Container
import net.minecraft.inventory.Slot
import net.minecraftforge.fml.common.eventhandler.Cancelable
import net.minecraftforge.fml.common.eventhandler.Event
// credit Harry282/Skyblock-Client, under AGPL 3.0
open class GuiContainerEvent(val container: Container, val gui: GuiContainer) : Event() {
@Cancelable
class DrawSlotEvent(container: Container, gui: GuiContainer, val slot: Slot) : GuiContainerEvent(container, gui)
@Cancelable
class SlotClickEvent(container: Container, gui: GuiContainer, val slot: Slot?, val slotId: Int) :
GuiContainerEvent(container, gui)
}
|