diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-05-05 22:07:10 +0100 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-05-05 22:07:10 +0100 |
| commit | 208b1f1e0d5faf601b53818b04f6699b2e6cb6bc (patch) | |
| tree | 56c059b812f1917b582e65e7ef15faa70a429f0b /src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java | |
| parent | 80417b99e10a462fd72b8f8fcd3b226c862534e4 (diff) | |
- Working on a GUI showing what curses you get with a description on them
- Added a search bar in the Liquids Tab for easier searching
- Fixed an issue with golden objects giving errors due to missing default texture
- Improved the Infamy Mask to have less parts, thus causing less lag
- Improved ingots and ore detection
- Fixed certain ores when smelted outputting a different ingot
- Necklaces and Rings now render as well
- Updated the guide at the Guide item to have the proper link to the mod as well as mention the right people who helped with it
- Added a list of the ores that work in the guide
- Added a new tab to the guide regarding the ores and the ingots they create
- Changed the stun effect caused by rings with feathers as modifiers to be a potion effect instead
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java')
| -rw-r--r-- | src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java b/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java index b08dc22..38ed0e7 100644 --- a/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java +++ b/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java @@ -7,8 +7,6 @@ package darkknight.jewelrycraft; import java.io.File; import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import java.util.logging.Logger; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; @@ -16,9 +14,9 @@ import net.minecraft.nbt.NBTTagCompound; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; -import cpw.mods.fml.common.ModMetadata; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; +import cpw.mods.fml.common.event.FMLInterModComms; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLServerStartingEvent; @@ -31,6 +29,7 @@ import darkknight.jewelrycraft.entities.EntityList; import darkknight.jewelrycraft.events.EventList; import darkknight.jewelrycraft.item.ItemList; import darkknight.jewelrycraft.network.PacketHandler; +import darkknight.jewelrycraft.potions.PotionList; import darkknight.jewelrycraft.proxy.CommonProxy; import darkknight.jewelrycraft.recipes.CraftingRecipes; import darkknight.jewelrycraft.util.Variables; @@ -52,7 +51,7 @@ public class JewelrycraftMod return Item.getItemFromBlock(BlockList.jewelCraftingTable); } }; - public static CreativeTabs liquids = new CreativeTabLiquids("Liquids"); + public static CreativeTabs liquids = new CreativeTabLiquids("Liquids").setBackgroundImageName("item_search.png"); public static NBTTagCompound saveData = new NBTTagCompound(); public static NBTTagCompound clientData = new NBTTagCompound(); public static File liquidsConf; @@ -78,23 +77,35 @@ public class JewelrycraftMod EntityList.preInit(e); VillageHandler.preInit(e); EventList.preInit(e); + PotionList.preInit(e); } @EventHandler public void init(FMLInitializationEvent e) { EventList.init(e); + PotionList.init(e); } @EventHandler public void postInit(FMLPostInitializationEvent e) { EventList.postInit(e); + PotionList.postInit(e); } - @Mod.EventHandler + @EventHandler public void serverLoad(FMLServerStartingEvent event) { event.registerServerCommand(new JewelrycraftCommands()); } + + @EventHandler + public void imcCallback(FMLInterModComms.IMCEvent event) + { + for (final FMLInterModComms.IMCMessage imcMessage : event.getMessages()) + { + logger.info("The mod " + imcMessage.getSender() + " has sent the following message: " + imcMessage.getStringValue()); + } + } } |
