From 20bef6e26d948698398bd16aeab8c9e6b89110e4 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 22 Aug 2019 20:01:40 -0400 Subject: Format/import cleanup --- .../darkknight/jewelrycraft/JewelrycraftMod.java | 41 +++++++--------------- 1 file changed, 13 insertions(+), 28 deletions(-) (limited to 'src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java') diff --git a/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java b/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java index 182cbb6..802724f 100755 --- a/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java +++ b/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java @@ -14,11 +14,7 @@ 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.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; +import cpw.mods.fml.common.event.*; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper; import darkknight.jewelrycraft.achievements.AchievementsList; @@ -47,16 +43,14 @@ import net.minecraftforge.oredict.OreDictionary.OreRegisterEvent; @Mod(modid = Variables.MODID, name = Variables.MODNAME, version = Variables.VERSION, guiFactory = Variables.CONFIG_GUI, acceptedMinecraftVersions = "[1.7.10,1.8)") public class JewelrycraftMod { - private static final class CreativeTabJewleryCraft - extends CreativeTabs { + private static final class CreativeTabJewleryCraft extends CreativeTabs { private CreativeTabJewleryCraft(String lable) { super(lable); } @Override public Item getTabIconItem() { - return Item.getItemFromBlock( - BlockList.jewelCraftingTable); + return Item.getItemFromBlock(BlockList.jewelCraftingTable); } } @@ -70,11 +64,8 @@ public class JewelrycraftMod { public static File dir; - public static CreativeTabs jewelrycraft = new CreativeTabJewleryCraft( - Variables.MODID); - public static CreativeTabs liquids = new CreativeTabLiquids( - "Liquids").setBackgroundImageName( - "item_search.png"); + public static CreativeTabs jewelrycraft = new CreativeTabJewleryCraft(Variables.MODID); + public static CreativeTabs liquids = new CreativeTabLiquids("Liquids").setBackgroundImageName("item_search.png"); public static SimpleNetworkWrapper netWrapper; @@ -84,13 +75,12 @@ public class JewelrycraftMod { * Pre initialization of mod stuff. * * @param e - * FMLPreInitializationEvent + * FMLPreInitializationEvent * @throws IOException - * Signals that an I/O exception has occurred. + * Signals that an I/O exception has occurred. */ @EventHandler - public void preInit(FMLPreInitializationEvent e) - throws IOException { + public void preInit(FMLPreInitializationEvent e) throws IOException { dir = e.getModConfigurationDirectory(); logger = e.getModLog(); ConfigHandler.INSTANCE.loadConfig(e); @@ -152,18 +142,15 @@ public class JewelrycraftMod { @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: " + for (final FMLInterModComms.IMCMessage imcMessage : event.getMessages()) { + logger.info("The mod " + imcMessage.getSender() + " has sent the following message: " + imcMessage.getStringValue()); } } @SubscribeEvent public void oredictRegistered(OreRegisterEvent orev) { - if (orev.Name.startsWith("ingot") - || orev.Name.startsWith("alloy")) { + if (orev.Name.startsWith("ingot") || orev.Name.startsWith("alloy")) { if (!JewelrycraftUtil.metal.contains(orev.Ore)) { JewelrycraftUtil.metal.add(orev.Ore); } @@ -174,12 +161,10 @@ public class JewelrycraftMod { JewelrycraftUtil.metal.add(orev.Ore); } - ItemStack ingot = FurnaceRecipes.smelting() - .getSmeltingResult(orev.Ore); + ItemStack ingot = FurnaceRecipes.smelting().getSmeltingResult(orev.Ore); if (ingot != null) { - JewelrycraftUtil.oreToIngot.put(orev.Ore, - ingot); + JewelrycraftUtil.oreToIngot.put(orev.Ore, ingot); } } } -- cgit v1.2.3