Clean imports

This commit is contained in:
modmuss50 2015-04-12 09:45:31 +01:00
parent c942a2278f
commit 91495286db
19 changed files with 51 additions and 69 deletions

View file

@ -1,7 +1,9 @@
package techreborn; package techreborn;
import java.io.File; import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import techreborn.client.GuiHandler; import techreborn.client.GuiHandler;
import techreborn.config.ConfigTechReborn; import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks; import techreborn.init.ModBlocks;
@ -10,10 +12,8 @@ import techreborn.init.ModRecipes;
import techreborn.lib.ModInfo; import techreborn.lib.ModInfo;
import techreborn.util.LogHelper; import techreborn.util.LogHelper;
import techreborn.world.TROreGen; import techreborn.world.TROreGen;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPreInitializationEvent; import java.io.File;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
@Mod(modid = ModInfo.MOD_ID, name = ModInfo.MOD_NAME, version = ModInfo.MOD_VERSION, dependencies = ModInfo.MOD_DEPENDENCUIES, guiFactory = ModInfo.GUI_FACTORY_CLASS) @Mod(modid = ModInfo.MOD_ID, name = ModInfo.MOD_NAME, version = ModInfo.MOD_VERSION, dependencies = ModInfo.MOD_DEPENDENCUIES, guiFactory = ModInfo.GUI_FACTORY_CLASS)
public class Core { public class Core {

View file

@ -1,11 +1,7 @@
package techreborn.blocks; package techreborn.blocks;
import java.util.List;
import java.util.Random;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
import techreborn.client.TechRebornCreativeTab;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.client.renderer.texture.IIconRegister;
@ -14,8 +10,11 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon; import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper; import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
import techreborn.client.TechRebornCreativeTab;
import java.util.List;
import java.util.Random;
public class BlockOre extends Block{ public class BlockOre extends Block{

View file

@ -2,7 +2,6 @@ package techreborn.client;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import techreborn.Core;
import techreborn.init.ModBlocks; import techreborn.init.ModBlocks;
public class TechRebornCreativeTab extends CreativeTabs { public class TechRebornCreativeTab extends CreativeTabs {

View file

@ -1,9 +1,9 @@
package techreborn.config; package techreborn.config;
import java.io.File;
import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.config.Configuration;
import java.io.File;
public class ConfigTechReborn { public class ConfigTechReborn {
private static ConfigTechReborn instance = null; private static ConfigTechReborn instance = null;
public static String CATEGORY_WORLD = "world"; public static String CATEGORY_WORLD = "world";

View file

@ -1,16 +1,16 @@
package techreborn.config; package techreborn.config;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.common.config.ConfigElement;
import net.minecraftforge.common.config.Configuration;
import cpw.mods.fml.client.config.DummyConfigElement; import cpw.mods.fml.client.config.DummyConfigElement;
import cpw.mods.fml.client.config.GuiConfig; import cpw.mods.fml.client.config.GuiConfig;
import cpw.mods.fml.client.config.GuiConfigEntries; import cpw.mods.fml.client.config.GuiConfigEntries;
import cpw.mods.fml.client.config.IConfigElement;
import cpw.mods.fml.client.config.GuiConfigEntries.CategoryEntry; import cpw.mods.fml.client.config.GuiConfigEntries.CategoryEntry;
import cpw.mods.fml.client.config.IConfigElement;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.common.config.ConfigElement;
import net.minecraftforge.common.config.Configuration;
import java.util.ArrayList;
import java.util.List;
public class TechRebornConfigGui extends GuiConfig{ public class TechRebornConfigGui extends GuiConfig{
public TechRebornConfigGui(GuiScreen top) public TechRebornConfigGui(GuiScreen top)

View file

@ -1,12 +1,10 @@
package techreborn.config; package techreborn.config;
import java.util.Set; import cpw.mods.fml.client.IModGuiFactory;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.GuiScreen;
import cpw.mods.fml.client.IModGuiFactory;
import cpw.mods.fml.client.IModGuiFactory.RuntimeOptionCategoryElement; import java.util.Set;
import cpw.mods.fml.client.IModGuiFactory.RuntimeOptionGuiHandler;
public class TechRebornGUIFactory implements IModGuiFactory{ public class TechRebornGUIFactory implements IModGuiFactory{
@Override @Override

View file

@ -1,5 +1,8 @@
package techreborn.init; package techreborn.init;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import techreborn.blocks.BlockOre; import techreborn.blocks.BlockOre;
import techreborn.blocks.BlockQuantumChest; import techreborn.blocks.BlockQuantumChest;
import techreborn.blocks.BlockQuantumTank; import techreborn.blocks.BlockQuantumTank;
@ -12,9 +15,6 @@ import techreborn.tiles.TileQuantumChest;
import techreborn.tiles.TileQuantumTank; import techreborn.tiles.TileQuantumTank;
import techreborn.tiles.TileThermalGenerator; import techreborn.tiles.TileThermalGenerator;
import techreborn.util.LogHelper; import techreborn.util.LogHelper;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class ModBlocks { public class ModBlocks {

View file

@ -1,5 +1,6 @@
package techreborn.init; package techreborn.init;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary; import net.minecraftforge.oredict.OreDictionary;
@ -8,7 +9,6 @@ import techreborn.items.ItemGems;
import techreborn.items.ItemIngots; import techreborn.items.ItemIngots;
import techreborn.items.ItemParts; import techreborn.items.ItemParts;
import techreborn.util.LogHelper; import techreborn.util.LogHelper;
import cpw.mods.fml.common.registry.GameRegistry;
public class ModItems { public class ModItems {

View file

@ -1,10 +1,6 @@
package techreborn.init; package techreborn.init;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import ic2.api.recipe.Recipes;
import techreborn.util.LogHelper; import techreborn.util.LogHelper;
import techreborn.util.RecipeRemover;
public class ModRecipes { public class ModRecipes {

View file

@ -1,10 +1,9 @@
package techreborn.itemblocks; package techreborn.itemblocks;
import techreborn.Core;
import techreborn.blocks.BlockOre;
import techreborn.init.ModBlocks;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.item.ItemMultiTexture; import net.minecraft.item.ItemMultiTexture;
import techreborn.blocks.BlockOre;
import techreborn.init.ModBlocks;
public class ItemBlockOre extends ItemMultiTexture{ public class ItemBlockOre extends ItemMultiTexture{

View file

@ -1,7 +1,5 @@
package techreborn.itemblocks; package techreborn.itemblocks;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemBlock;

View file

@ -1,17 +1,14 @@
package techreborn.items; package techreborn.items;
import java.util.List;
import techreborn.Core;
import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumRarity; import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IIcon; import net.minecraft.util.IIcon;
import techreborn.client.TechRebornCreativeTab;
import java.util.List;
public class ItemDusts extends ItemTR public class ItemDusts extends ItemTR
{ {

View file

@ -1,15 +1,14 @@
package techreborn.items; package techreborn.items;
import java.util.List;
import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumRarity; import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon; import net.minecraft.util.IIcon;
import techreborn.client.TechRebornCreativeTab;
import java.util.List;
public class ItemGems extends Item{ public class ItemGems extends Item{
public static final String[] types = new String[] public static final String[] types = new String[]

View file

@ -1,15 +1,14 @@
package techreborn.items; package techreborn.items;
import java.util.List;
import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumRarity; import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon; import net.minecraft.util.IIcon;
import techreborn.client.TechRebornCreativeTab;
import java.util.List;
public class ItemIngots extends Item{ public class ItemIngots extends Item{
public static final String[] types = new String[] public static final String[] types = new String[]

View file

@ -1,7 +1,5 @@
package techreborn.items; package techreborn.items;
import java.util.List;
import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumRarity; import net.minecraft.item.EnumRarity;
@ -9,7 +7,8 @@ import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon; import net.minecraft.util.IIcon;
import techreborn.client.TechRebornCreativeTab; import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
import java.util.List;
public class ItemParts extends Item{ public class ItemParts extends Item{
public static final String[] types = new String[] public static final String[] types = new String[]

View file

@ -1,9 +1,9 @@
package techreborn.items; package techreborn.items;
import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
public class ItemTR extends Item{ public class ItemTR extends Item{

View file

@ -1,9 +1,8 @@
package techreborn.util; package techreborn.util;
import org.apache.logging.log4j.Level;
import techreborn.lib.ModInfo;
import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.common.FMLLog;
import org.apache.logging.log4j.Level;
import techreborn.lib.ModInfo;
public class LogHelper { public class LogHelper {

View file

@ -1,12 +1,12 @@
package techreborn.util; package techreborn.util;
import java.util.List;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager; import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.item.crafting.IRecipe; import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.ShapedRecipes; import net.minecraft.item.crafting.ShapedRecipes;
import java.util.List;
public class RecipeRemover public class RecipeRemover
{ {
public static void removeShapedRecipes(List<ItemStack> removelist) public static void removeShapedRecipes(List<ItemStack> removelist)

View file

@ -1,15 +1,15 @@
package techreborn.world; package techreborn.world;
import java.util.Random; import cpw.mods.fml.common.IWorldGenerator;
import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks;
import techreborn.util.LogHelper;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator; import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks;
import techreborn.util.LogHelper;
import java.util.Random;
public class TROreGen implements IWorldGenerator{ public class TROreGen implements IWorldGenerator{
public static ConfigTechReborn config; public static ConfigTechReborn config;