Added Models for Resources and other items

This commit is contained in:
primetoxinz committed 2015-12-22 22:37:27 -05:00
1 parent 33b423aaa1
commit 305b99b3f5
29 files changed
+273 -165

No files matched your search

@@ -10,13 +10,8 @@
*/
package vazkii.botania.common;
import vazkii.botania.common.core.handler.IMCHandler;
import vazkii.botania.common.core.handler.ManaNetworkHandler;
import vazkii.botania.common.core.proxy.CommonProxy;
import vazkii.botania.common.integration.coloredlights.ILightHelper;
import vazkii.botania.common.integration.coloredlights.LightHelperColored;
import vazkii.botania.common.integration.coloredlights.LightHelperVanilla;
import vazkii.botania.common.lib.LibMisc;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.player.ItemTooltipEvent;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
@@ -30,6 +25,14 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerAboutToStartEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.event.FMLServerStoppingEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import vazkii.botania.common.core.handler.IMCHandler;
import vazkii.botania.common.core.handler.ManaNetworkHandler;
import vazkii.botania.common.core.proxy.CommonProxy;
import vazkii.botania.common.integration.coloredlights.ILightHelper;
import vazkii.botania.common.integration.coloredlights.LightHelperColored;
import vazkii.botania.common.integration.coloredlights.LightHelperVanilla;
import vazkii.botania.common.lib.LibMisc;
@Mod(modid = LibMisc.MOD_ID, name = LibMisc.MOD_NAME, version = LibMisc.VERSION, dependencies = LibMisc.DEPENDENCIES, guiFactory = LibMisc.GUI_FACTORY)
public class Botania {
@@ -61,9 +64,11 @@ public class Botania {
etFuturumLoaded = Loader.isModLoaded("etfuturum");
lightHelper = coloredLightsLoaded ? new LightHelperColored() : new LightHelperVanilla();
// TODO remove this \/
MinecraftForge.EVENT_BUS.register(this);
proxy.preInit(event);
}
@EventHandler
public void init(FMLInitializationEvent event) {
proxy.init(event);
@@ -94,8 +99,13 @@ public class Botania {
IMCHandler.processMessages(event.getMessages());
}
/*@EventHandler
public void missingMappings(FMLMissingMappingsEvent event) {
AliasHandler.onMissingMappings(event);
}*/
// TODO remove this, was for testing
@SubscribeEvent
public void tooltip(ItemTooltipEvent e) {
e.toolTip.add(e.itemStack.getUnlocalizedName() + ":" + e.itemStack.getItemDamage());
}
/*
* @EventHandler public void missingMappings(FMLMissingMappingsEvent event)
* { AliasHandler.onMissingMappings(event); }
*/
}