Created
January 3, 2017 15:40
-
-
Save boq/e55ea64ca9e9ba06fc56f5824b2de1ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.examplemod; | |
| import net.minecraft.init.Blocks; | |
| import net.minecraftforge.fml.common.Mod; | |
| import net.minecraftforge.fml.common.Mod.EventHandler; | |
| import net.minecraftforge.fml.common.event.FMLInitializationEvent; | |
| @Mod(modid = ExampleMod.MODID, version = ExampleMod.VERSION) | |
| public class ExampleMod | |
| { | |
| public static final String MODID = "examplemod"; | |
| public static final String VERSION = "1.0"; | |
| @EventHandler | |
| public void init(FMLInitializationEvent event) | |
| { | |
| class Inner { | |
| public String test() { | |
| return "test"; | |
| } | |
| } | |
| // some example code | |
| System.out.println(new Inner().test()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment