diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/events')
10 files changed, 0 insertions, 88 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt b/src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt deleted file mode 100644 index 098912a..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/BeforeGuiAction.kt +++ /dev/null @@ -1,11 +0,0 @@ -package moe.nea.ledger.events - -import net.minecraft.client.gui.GuiScreen -import net.minecraft.client.gui.inventory.GuiChest -import net.minecraft.inventory.ContainerChest -import net.minecraftforge.fml.common.eventhandler.Event - -data class BeforeGuiAction(val gui: GuiScreen) : Event() { - val chest = gui as? GuiChest - val chestSlots = chest?.inventorySlots as ContainerChest? -} diff --git a/src/main/kotlin/moe/nea/ledger/events/ChatReceived.kt b/src/main/kotlin/moe/nea/ledger/events/ChatReceived.kt deleted file mode 100644 index a352c27..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/ChatReceived.kt +++ /dev/null @@ -1,15 +0,0 @@ -package moe.nea.ledger.events - -import moe.nea.ledger.unformattedString -import net.minecraftforge.client.event.ClientChatReceivedEvent -import net.minecraftforge.fml.common.eventhandler.Event -import java.time.Instant - -data class ChatReceived( - val message: String, - val timestamp: Instant = Instant.now() -) : Event() { - constructor(event: ClientChatReceivedEvent) : this( - event.message.unformattedText.unformattedString().trimEnd() - ) -}
\ No newline at end of file diff --git a/src/main/kotlin/moe/nea/ledger/events/ExtraSupplyIdEvent.kt b/src/main/kotlin/moe/nea/ledger/events/ExtraSupplyIdEvent.kt deleted file mode 100644 index d040961..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/ExtraSupplyIdEvent.kt +++ /dev/null @@ -1,12 +0,0 @@ -package moe.nea.ledger.events - -import moe.nea.ledger.ItemId -import net.minecraftforge.fml.common.eventhandler.Event - -class ExtraSupplyIdEvent( - private val store: (String, ItemId) -> Unit -) : Event() { - fun store(name: String, id: ItemId) { - store.invoke(name, id) - } -} diff --git a/src/main/kotlin/moe/nea/ledger/events/GuiClickEvent.kt b/src/main/kotlin/moe/nea/ledger/events/GuiClickEvent.kt deleted file mode 100644 index 9e057dd..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/GuiClickEvent.kt +++ /dev/null @@ -1,9 +0,0 @@ -package moe.nea.ledger.events - -import net.minecraft.inventory.Slot -import net.minecraftforge.fml.common.eventhandler.Event - -data class GuiClickEvent( - val slotIn: Slot?, val slotId: Int, val clickedButton: Int, val clickType: Int -) : Event() { -}
\ No newline at end of file diff --git a/src/main/kotlin/moe/nea/ledger/events/InitializationComplete.kt b/src/main/kotlin/moe/nea/ledger/events/InitializationComplete.kt deleted file mode 100644 index d917039..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/InitializationComplete.kt +++ /dev/null @@ -1,6 +0,0 @@ -package moe.nea.ledger.events - -import net.minecraftforge.fml.common.eventhandler.Event - -class InitializationComplete : Event() { -}
\ No newline at end of file diff --git a/src/main/kotlin/moe/nea/ledger/events/RegistrationFinishedEvent.kt b/src/main/kotlin/moe/nea/ledger/events/RegistrationFinishedEvent.kt deleted file mode 100644 index d36e0c7..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/RegistrationFinishedEvent.kt +++ /dev/null @@ -1,7 +0,0 @@ -package moe.nea.ledger.events - -import net.minecraftforge.fml.common.eventhandler.Event - -class RegistrationFinishedEvent : Event() { - -} diff --git a/src/main/kotlin/moe/nea/ledger/events/SupplyDebugInfo.kt b/src/main/kotlin/moe/nea/ledger/events/SupplyDebugInfo.kt deleted file mode 100644 index cab0a20..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/SupplyDebugInfo.kt +++ /dev/null @@ -1,10 +0,0 @@ -package moe.nea.ledger.events - -import net.minecraftforge.fml.common.eventhandler.Event - -class SupplyDebugInfo : Event() { // TODO: collect this in the event recorder - val data = mutableListOf<Pair<String, Any>>() - fun record(key: String, value: Any) { - data.add(key to value) - } -}
\ No newline at end of file diff --git a/src/main/kotlin/moe/nea/ledger/events/TriggerEvent.kt b/src/main/kotlin/moe/nea/ledger/events/TriggerEvent.kt deleted file mode 100644 index 3751f43..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/TriggerEvent.kt +++ /dev/null @@ -1,7 +0,0 @@ -package moe.nea.ledger.events - -import net.minecraftforge.fml.common.eventhandler.Cancelable -import net.minecraftforge.fml.common.eventhandler.Event - -@Cancelable -data class TriggerEvent(val action: String) : Event() diff --git a/src/main/kotlin/moe/nea/ledger/events/WorldLoadEvent.kt b/src/main/kotlin/moe/nea/ledger/events/WorldLoadEvent.kt deleted file mode 100644 index d60f3a4..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/WorldLoadEvent.kt +++ /dev/null @@ -1,5 +0,0 @@ -package moe.nea.ledger.events - -import net.minecraftforge.fml.common.eventhandler.Event - -class LateWorldLoadEvent : Event() diff --git a/src/main/kotlin/moe/nea/ledger/events/WorldSwitchEvent.kt b/src/main/kotlin/moe/nea/ledger/events/WorldSwitchEvent.kt deleted file mode 100644 index 22a97f7..0000000 --- a/src/main/kotlin/moe/nea/ledger/events/WorldSwitchEvent.kt +++ /dev/null @@ -1,6 +0,0 @@ -package moe.nea.ledger.events - -import net.minecraftforge.fml.common.eventhandler.Event - -class WorldSwitchEvent : Event() { -}
\ No newline at end of file |