aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/potatocrime/events/OnWorldSwap.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-02 02:38:25 +0200
committerLinnea Gräf <nea@nea.moe>2024-04-02 02:38:25 +0200
commit856d3242f34f7a787f02b086c0cb4b5b97eb34ca (patch)
treecca84191a5ba58090f88a4d3de6b83dcc991e589 /src/main/kotlin/moe/nea/potatocrime/events/OnWorldSwap.kt
parentab30c1128b42eed24d0decf9ecf9e6a2c98a79e2 (diff)
downloadpotato-crimes-856d3242f34f7a787f02b086c0cb4b5b97eb34ca.tar.gz
potato-crimes-856d3242f34f7a787f02b086c0cb4b5b97eb34ca.tar.bz2
potato-crimes-856d3242f34f7a787f02b086c0cb4b5b97eb34ca.zip
Improve texture
Diffstat (limited to 'src/main/kotlin/moe/nea/potatocrime/events/OnWorldSwap.kt')
-rw-r--r--src/main/kotlin/moe/nea/potatocrime/events/OnWorldSwap.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/potatocrime/events/OnWorldSwap.kt b/src/main/kotlin/moe/nea/potatocrime/events/OnWorldSwap.kt
new file mode 100644
index 0000000..135ea51
--- /dev/null
+++ b/src/main/kotlin/moe/nea/potatocrime/events/OnWorldSwap.kt
@@ -0,0 +1,14 @@
+package moe.nea.potatocrime.events
+
+import net.fabricmc.fabric.api.event.EventFactory
+import net.minecraft.entity.Entity
+
+fun interface OnEnterPotatoWorld {
+ fun onEnterPotatoWorld(entity: Entity)
+
+ companion object {
+ val EVENT = EventFactory.createArrayBacked(OnEnterPotatoWorld::class.java) { events ->
+ OnEnterPotatoWorld { entity -> events.forEach { it.onEnterPotatoWorld(entity) } }
+ }
+ }
+} \ No newline at end of file