diff options
author | Appability <appable@icloud.com> | 2022-11-12 02:48:54 -0800 |
---|---|---|
committer | Appability <appable@icloud.com> | 2022-11-12 02:48:54 -0800 |
commit | 2b21d3a18b412ec8c205beacf403f0147dc04618 (patch) | |
tree | 7aaeda1956b03ba5b0e53cdf575663e3d68a34d2 /src/main/kotlin/com/ambientaddons/events | |
parent | 8ec0ce4c645b3fb94c25cde9922f853a992b3fa7 (diff) | |
download | AmbientAddons-2b21d3a18b412ec8c205beacf403f0147dc04618.tar.gz AmbientAddons-2b21d3a18b412ec8c205beacf403f0147dc04618.tar.bz2 AmbientAddons-2b21d3a18b412ec8c205beacf403f0147dc04618.zip |
add autosalvage
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/events')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/events/GuiContainerEvent.kt | 4 | ||||
-rw-r--r-- | src/main/kotlin/com/ambientaddons/events/HitBlockEvent.kt | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/main/kotlin/com/ambientaddons/events/GuiContainerEvent.kt b/src/main/kotlin/com/ambientaddons/events/GuiContainerEvent.kt index 276abc3..563f0f2 100644 --- a/src/main/kotlin/com/ambientaddons/events/GuiContainerEvent.kt +++ b/src/main/kotlin/com/ambientaddons/events/GuiContainerEvent.kt @@ -9,9 +9,9 @@ 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, var slot: Slot) : GuiContainerEvent(container, gui) + class DrawSlotEvent(container: Container, gui: GuiContainer, val slot: Slot) : GuiContainerEvent(container, gui) @Cancelable - class SlotClickEvent(container: Container, gui: GuiContainer, var slot: Slot?, var slotId: Int) : + class SlotClickEvent(container: Container, gui: GuiContainer, val slot: Slot?, val slotId: Int) : GuiContainerEvent(container, gui) }
\ No newline at end of file diff --git a/src/main/kotlin/com/ambientaddons/events/HitBlockEvent.kt b/src/main/kotlin/com/ambientaddons/events/HitBlockEvent.kt new file mode 100644 index 0000000..256fbe1 --- /dev/null +++ b/src/main/kotlin/com/ambientaddons/events/HitBlockEvent.kt @@ -0,0 +1,7 @@ +package com.ambientaddons.events + +import net.minecraft.util.BlockPos +import net.minecraft.util.EnumFacing +import net.minecraftforge.fml.common.eventhandler.Event + +class HitBlockEvent(val blockPos: BlockPos, val face: EnumFacing) : Event()
\ No newline at end of file |