Skip to content

Instantly share code, notes, and snippets.

@boq
Created January 3, 2017 15:40
Show Gist options
  • Select an option

  • Save boq/e55ea64ca9e9ba06fc56f5824b2de1ee to your computer and use it in GitHub Desktop.

Select an option

Save boq/e55ea64ca9e9ba06fc56f5824b2de1ee to your computer and use it in GitHub Desktop.
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