2013-11-17 18:21:24 -06:00
|
|
|
package com.example.examplemod;
|
|
|
|
|
|
2013-12-28 13:44:37 -05:00
|
|
|
import net.minecraft.init.Blocks;
|
2014-09-22 22:01:24 -07:00
|
|
|
import net.minecraftforge.fml.common.Mod;
|
|
|
|
|
import net.minecraftforge.fml.common.Mod.EventHandler;
|
|
|
|
|
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
2018-01-12 23:54:29 -08:00
|
|
|
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
|
|
|
|
import org.apache.logging.log4j.Logger;
|
2013-11-17 18:21:24 -06:00
|
|
|
|
2018-01-12 23:54:29 -08:00
|
|
|
@Mod(modid = ExampleMod.MODID, name = ExampleMod.NAME, version = ExampleMod.VERSION)
|
2013-11-17 18:21:24 -06:00
|
|
|
public class ExampleMod
|
|
|
|
|
{
|
|
|
|
|
public static final String MODID = "examplemod";
|
2018-01-12 23:54:29 -08:00
|
|
|
public static final String NAME = "Example Mod";
|
2013-11-17 18:21:24 -06:00
|
|
|
public static final String VERSION = "1.0";
|
2018-01-12 23:54:29 -08:00
|
|
|
|
|
|
|
|
private static Logger logger;
|
|
|
|
|
|
|
|
|
|
@EventHandler
|
|
|
|
|
public void preInit(FMLPreInitializationEvent event)
|
|
|
|
|
{
|
|
|
|
|
logger = event.getModLog();
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-17 18:21:24 -06:00
|
|
|
@EventHandler
|
|
|
|
|
public void init(FMLInitializationEvent event)
|
|
|
|
|
{
|
2016-05-18 18:06:41 -07:00
|
|
|
// some example code
|
2018-01-12 23:54:29 -08:00
|
|
|
logger.info("DIRT BLOCK >> {}", Blocks.DIRT.getRegistryName());
|
2013-11-17 18:21:24 -06:00
|
|
|
}
|
|
|
|
|
}
|