diff options
author | Linnea Gräf <nea@nea.moe> | 2024-02-22 22:05:15 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-02-22 22:06:01 +0100 |
commit | aef074886b587745bd814fe965d55e7b4cf11a07 (patch) | |
tree | acc62b9aaf9f95bdce17a85683c42cbec93fe800 /src/main/kotlin/moe/nea/kowalski/ExampleMod.kt | |
parent | e8196b0b5e02ec21f75109ab7aba8d48220c8d05 (diff) | |
download | Kowalski-aef074886b587745bd814fe965d55e7b4cf11a07.tar.gz Kowalski-aef074886b587745bd814fe965d55e7b4cf11a07.tar.bz2 Kowalski-aef074886b587745bd814fe965d55e7b4cf11a07.zip |
Add event cancellation watcher
Diffstat (limited to 'src/main/kotlin/moe/nea/kowalski/ExampleMod.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/kowalski/ExampleMod.kt | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/main/kotlin/moe/nea/kowalski/ExampleMod.kt b/src/main/kotlin/moe/nea/kowalski/ExampleMod.kt deleted file mode 100644 index a622a6c..0000000 --- a/src/main/kotlin/moe/nea/kowalski/ExampleMod.kt +++ /dev/null @@ -1,22 +0,0 @@ -package moe.nea.kowalski - -import net.minecraft.client.Minecraft -import net.minecraft.init.Blocks -import net.minecraftforge.fml.common.Mod -import net.minecraftforge.fml.common.event.FMLInitializationEvent - -@Mod(modid = "kowalski", useMetadata = true) -class ExampleMod { - @Mod.EventHandler - fun init(event: FMLInitializationEvent) { - try { - val resource: net.minecraft.client.resources.IResource = Minecraft.getMinecraft().getResourceManager() - .getResource(net.minecraft.util.ResourceLocation("test:test.txt")) - org.apache.commons.io.IOUtils.copy(resource.getInputStream(), java.lang.System.out) - } catch (e: java.io.IOException) { - throw java.lang.RuntimeException(e) - } - - println("Dirt: ${Blocks.dirt.unlocalizedName}") - } -} |