mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-05 04:49:10 +01:00
57 lines
2 KiB
Java
57 lines
2 KiB
Java
|
package de.ellpeck.naturesaura;
|
||
|
|
||
|
import de.ellpeck.naturesaura.blocks.OurBlocks;
|
||
|
import de.ellpeck.naturesaura.proxy.IProxy;
|
||
|
import de.ellpeck.naturesaura.reg.ModRegistry;
|
||
|
import net.minecraft.creativetab.CreativeTabs;
|
||
|
import net.minecraft.init.Items;
|
||
|
import net.minecraft.item.ItemStack;
|
||
|
import net.minecraftforge.fml.common.Mod;
|
||
|
import net.minecraftforge.fml.common.Mod.EventHandler;
|
||
|
import net.minecraftforge.fml.common.SidedProxy;
|
||
|
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||
|
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
||
|
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||
|
import org.apache.logging.log4j.LogManager;
|
||
|
import org.apache.logging.log4j.Logger;
|
||
|
|
||
|
@Mod(modid = NaturesAura.MOD_ID, name = NaturesAura.MOD_NAME, version = NaturesAura.VERSION)
|
||
|
public final class NaturesAura {
|
||
|
|
||
|
public static final String MOD_ID = "naturesaura";
|
||
|
public static final String PROXY_LOCATION = "de.ellpeck." + MOD_ID + ".proxy.";
|
||
|
public static final String MOD_NAME = "Nature's Aura";
|
||
|
public static final String VERSION = "@VERSION@";
|
||
|
|
||
|
public static final Logger LOGGER = LogManager.getLogger(MOD_NAME);
|
||
|
|
||
|
@SidedProxy(modId = MOD_ID, clientSide = PROXY_LOCATION + "ClientProxy", serverSide = PROXY_LOCATION + "ServerProxy")
|
||
|
public static IProxy proxy;
|
||
|
|
||
|
public static final CreativeTabs CREATIVE_TAB = new CreativeTabs(MOD_ID) {
|
||
|
@Override
|
||
|
public ItemStack createIcon() {
|
||
|
return new ItemStack(Items.BEETROOT);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
@EventHandler
|
||
|
public void preInit(FMLPreInitializationEvent event) {
|
||
|
new OurBlocks();
|
||
|
ModRegistry.preInit(event);
|
||
|
proxy.preInit(event);
|
||
|
}
|
||
|
|
||
|
@EventHandler
|
||
|
public void init(FMLInitializationEvent event) {
|
||
|
ModRegistry.init(event);
|
||
|
proxy.init(event);
|
||
|
}
|
||
|
|
||
|
@EventHandler
|
||
|
public void postInit(FMLPostInitializationEvent event) {
|
||
|
ModRegistry.postInit(event);
|
||
|
proxy.postInit(event);
|
||
|
}
|
||
|
}
|