From 9a4d1e95ea7784f0f98ea2913701a3a3c28aefaa Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 24 May 2018 16:03:42 -0400 Subject: Formatting pass --- .../darkknight/jewelrycraft/JewelrycraftMod.java | 66 +++++++++++----------- 1 file changed, 34 insertions(+), 32 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 574d163..182cbb6 100755 --- a/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java +++ b/src/main/java/darkknight/jewelrycraft/JewelrycraftMod.java @@ -45,9 +45,7 @@ import net.minecraft.item.crafting.FurnaceRecipes; import net.minecraftforge.common.MinecraftForge; 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)") +@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 { @@ -57,41 +55,42 @@ public class JewelrycraftMod { @Override public Item getTabIconItem() { - return Item.getItemFromBlock(BlockList.jewelCraftingTable); + return Item.getItemFromBlock( + BlockList.jewelCraftingTable); } } @Instance(Variables.MODID) - public static JewelrycraftMod instance; + public static JewelrycraftMod instance; - @SidedProxy(clientSide = Variables.CLIENT_PROXY, - serverSide = Variables.SERVER_PROXY) - public static CommonProxy proxy; + @SidedProxy(clientSide = Variables.CLIENT_PROXY, serverSide = Variables.SERVER_PROXY) + public static CommonProxy proxy; - public static Logger logger; + public static Logger logger; - public static File dir; + 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; + public static SimpleNetworkWrapper netWrapper; - public static boolean fancyRender = false; + public static boolean fancyRender = false; /** * 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); @@ -118,7 +117,7 @@ public class JewelrycraftMod { ThirdPartyManager.instance().preInit(); logger.log(Level.INFO, "Adding Dungeons loot"); ChestGeneration.preInit(e); - + MinecraftForge.EVENT_BUS.register(this); } @@ -160,24 +159,27 @@ public class JewelrycraftMod { + imcMessage.getStringValue()); } } - + @SubscribeEvent public void oredictRegistered(OreRegisterEvent orev) { - if(orev.Name.startsWith("ingot") || orev.Name.startsWith("alloy")) { - if(!JewelrycraftUtil.metal.contains(orev.Ore)) { + if (orev.Name.startsWith("ingot") + || orev.Name.startsWith("alloy")) { + if (!JewelrycraftUtil.metal.contains(orev.Ore)) { JewelrycraftUtil.metal.add(orev.Ore); } } - - if(orev.Name.startsWith("ore")) { - if(!JewelrycraftUtil.ores.contains(orev.Ore)) { + + if (orev.Name.startsWith("ore")) { + if (!JewelrycraftUtil.ores.contains(orev.Ore)) { JewelrycraftUtil.metal.add(orev.Ore); } - - ItemStack ingot = FurnaceRecipes.smelting().getSmeltingResult(orev.Ore); - - if(ingot != null) { - JewelrycraftUtil.oreToIngot.put(orev.Ore, ingot); + + ItemStack ingot = FurnaceRecipes.smelting() + .getSmeltingResult(orev.Ore); + + if (ingot != null) { + JewelrycraftUtil.oreToIngot.put(orev.Ore, + ingot); } } } -- cgit v1.2.3