From f477187ede960b49cee489cd0432d308391fa3d9 Mon Sep 17 00:00:00 2001 From: Katrina Swales Date: Tue, 25 Nov 2014 18:44:16 +0000 Subject: [PATCH] Will this work? --- src/api/java/baubles/api/BaublesApi.java | 12 ++--- src/api/java/baubles/api/IBauble.java | 16 +++---- .../api/blueprints/BlueprintDeployer.java | 8 ++-- .../api/blueprints/IBuilderContext.java | 3 +- .../api/blueprints/MappingRegistry.java | 7 ++- .../buildcraft/api/blueprints/Schematic.java | 6 +-- .../api/blueprints/SchematicBlock.java | 7 ++- .../api/blueprints/SchematicEntity.java | 8 ++-- .../api/blueprints/SchematicFactory.java | 4 +- .../api/blueprints/SchematicMask.java | 5 +-- .../api/blueprints/SchematicRegistry.java | 10 ++--- .../api/blueprints/SchematicTile.java | 7 ++- .../buildcraft/api/core/BuildCraftAPI.java | 6 +-- .../buildcraft/api/core/IIconProvider.java | 5 +-- .../java/buildcraft/api/core/Position.java | 1 - .../buildcraft/api/filler/IFillerPattern.java | 3 +- .../api/filler/IFillerRegistry.java | 4 +- .../api/fuels/IronEngineCoolant.java | 10 ++--- .../buildcraft/api/fuels/IronEngineFuel.java | 6 +-- .../buildcraft/api/gates/ActionManager.java | 9 ++-- .../api/gates/GateExpansionController.java | 3 +- .../buildcraft/api/gates/GateExpansions.java | 6 +-- .../java/buildcraft/api/gates/IAction.java | 4 +- .../buildcraft/api/gates/IActionProvider.java | 4 +- .../java/buildcraft/api/gates/ITrigger.java | 4 +- .../api/gates/ITriggerProvider.java | 5 +-- .../api/gates/TriggerParameter.java | 10 ++--- src/api/java/buildcraft/api/mj/MjAPI.java | 6 +-- .../java/buildcraft/api/mj/MjAPILegacy.java | 8 ++-- src/api/java/buildcraft/api/mj/MjBattery.java | 6 +-- .../buildcraft/api/power/IPowerReceptor.java | 1 - .../buildcraft/api/power/PowerHandler.java | 6 +-- .../api/recipes/IAssemblyRecipeManager.java | 6 +-- .../recipes/IIntegrationRecipeManager.java | 4 +- .../api/recipes/IRefineryRecipeManager.java | 4 +- .../api/transport/IPipeConnection.java | 3 +- .../buildcraft/api/transport/IPipeTile.java | 3 +- .../buildcraft/api/transport/PipeManager.java | 4 +- .../buildcraft/api/transport/PipeWire.java | 4 +- .../java/cofh/api/energy/EnergyStorage.java | 8 ++-- .../cofh/api/energy/IEnergyConnection.java | 6 +-- .../cofh/api/energy/IEnergyContainerItem.java | 10 ++--- .../java/cofh/api/energy/IEnergyHandler.java | 10 ++--- .../java/cofh/api/energy/IEnergyStorage.java | 10 ++--- .../cofh/api/energy/ItemEnergyContainer.java | 4 +- .../cofh/api/energy/TileEnergyHandler.java | 4 +- .../computercraft/api/ComputerCraftAPI.java | 16 +++---- .../computercraft/api/filesystem/IMount.java | 4 +- .../computercraft/api/lua/ILuaContext.java | 4 +- .../computercraft/api/media/IMedia.java | 6 +-- .../api/peripheral/IComputerAccess.java | 6 +-- .../api/peripheral/IPeripheral.java | 8 ++-- .../api/turtle/ITurtleUpgrade.java | 12 ++--- .../api/turtle/TurtleUpgradeType.java | 2 +- .../computercraft/api/turtle/TurtleVerb.java | 2 +- .../mcp/mobius/waila/api/IWailaBlock.java | 8 ++-- .../waila/api/IWailaBlockDecorator.java | 4 +- .../mobius/waila/api/IWailaConfigHandler.java | 14 +++--- .../mobius/waila/api/IWailaDataAccessor.java | 2 +- .../mobius/waila/api/IWailaDataProvider.java | 8 ++-- .../waila/api/IWailaEntityProvider.java | 8 ++-- .../mobius/waila/api/IWailaFMPAccessor.java | 1 - .../mobius/waila/api/IWailaFMPDecorator.java | 2 +- .../mobius/waila/api/IWailaFMPProvider.java | 4 +- .../mcp/mobius/waila/api/IWailaRegistrar.java | 24 +++++----- .../waila/api/IWailaSummaryProvider.java | 6 +-- .../mcp/mobius/waila/api/SpecialChars.java | 12 ++--- src/main/java/appeng/api/AEApi.java | 8 ++-- src/main/java/appeng/api/IAppEngApi.java | 4 +- .../java/appeng/api/config/PowerUnits.java | 6 +-- src/main/java/appeng/api/config/Upgrades.java | 4 +- .../api/events/LocatableEventAnnounce.java | 2 +- .../appeng/api/features/IGrinderEntry.java | 24 +++++----- .../appeng/api/features/IGrinderRegistry.java | 10 ++--- .../api/features/IItemComparisonProvider.java | 4 +- .../api/features/ILocatableRegistry.java | 2 +- .../features/IMatterCannonAmmoRegistry.java | 4 +- .../api/features/INetworkEncodable.java | 4 +- .../api/features/IP2PTunnelRegistry.java | 6 +-- .../appeng/api/features/IPlayerRegistry.java | 3 +- .../api/features/IRecipeHandlerRegistry.java | 10 ++--- .../features/ISpecialComparisonRegistry.java | 6 +-- .../api/features/IWirelessTermHandler.java | 10 ++--- .../api/features/IWirelessTermRegistry.java | 2 +- .../implementations/ICraftingPatternItem.java | 4 +- .../api/implementations/IUpgradeableHost.java | 6 +-- .../guiobjects/INetworkTool.java | 2 +- .../items/IAEItemPowerStorage.java | 8 ++-- .../api/implementations/items/IAEWrench.java | 2 +- .../implementations/items/IBiometricCard.java | 8 ++-- .../api/implementations/items/IItemGroup.java | 2 +- .../implementations/items/IMemoryCard.java | 8 ++-- .../items/ISpatialStorageCell.java | 12 ++--- .../implementations/items/IStorageCell.java | 20 ++++----- .../items/IStorageComponent.java | 4 +- .../implementations/items/IUpgradeModule.java | 2 +- .../api/implementations/parts/IPartCable.java | 8 ++-- .../implementations/tiles/IChestOrDrive.java | 8 ++-- .../implementations/tiles/IColorableTile.java | 2 +- .../tiles/ICraftingMachine.java | 8 ++-- .../api/implementations/tiles/ICrankable.java | 8 ++-- .../tiles/ISegmentedInventory.java | 2 +- .../tiles/ITileStorageMonitorable.java | 2 +- .../tiles/IViewCellStorage.java | 2 +- .../api/integration/IBeeComparison.java | 4 +- .../appeng/api/movable/IMovableHandler.java | 8 ++-- .../appeng/api/movable/IMovableRegistry.java | 32 +++++++------- .../java/appeng/api/movable/IMovableTile.java | 2 +- .../java/appeng/api/networking/IGrid.java | 12 ++--- .../appeng/api/networking/IGridBlock.java | 12 ++--- .../appeng/api/networking/IGridCache.java | 22 +++++----- .../api/networking/IGridCacheRegistry.java | 6 +-- .../api/networking/IGridConnection.java | 8 ++-- .../networking/IGridConnectionVisitor.java | 2 +- .../java/appeng/api/networking/IGridHost.java | 12 ++--- .../api/networking/IGridMultiblock.java | 2 +- .../java/appeng/api/networking/IGridNode.java | 36 +++++++-------- .../appeng/api/networking/IGridVisitor.java | 6 +-- .../crafting/ICraftingCallback.java | 2 +- .../networking/crafting/ICraftingGrid.java | 14 +++--- .../api/networking/crafting/ICraftingJob.java | 2 +- .../networking/crafting/ICraftingLink.java | 2 +- .../networking/crafting/ICraftingMedium.java | 2 +- .../crafting/ICraftingPatternDetails.java | 12 ++--- .../crafting/ICraftingProvider.java | 2 +- .../crafting/ICraftingRequester.java | 7 ++- .../networking/crafting/ICraftingWatcher.java | 4 +- .../crafting/ICraftingWatcherHost.java | 4 +- .../networking/energy/IAEPowerStorage.java | 8 ++-- .../api/networking/energy/IEnergyGrid.java | 16 +++---- .../energy/IEnergyGridProvider.java | 4 +- .../api/networking/energy/IEnergySource.java | 2 +- .../networking/energy/IEnergyWatcherHost.java | 4 +- .../events/MENetworkBootingStatusChange.java | 2 +- .../events/MENetworkCellArrayUpdate.java | 4 +- .../events/MENetworkChannelsChanged.java | 2 +- .../api/networking/events/MENetworkEvent.java | 8 ++-- .../events/MENetworkEventSubscribe.java | 6 +-- .../events/MENetworkPowerIdleChange.java | 2 +- .../events/MENetworkPowerStatusChange.java | 2 +- .../events/MENetworkPowerStorage.java | 10 ++--- .../events/MENetworkStorageEvent.java | 4 +- .../api/networking/security/IActionHost.java | 2 +- .../networking/security/ISecurityGrid.java | 10 ++--- .../security/ISecurityProvider.java | 4 +- .../security/ISecurityRegistry.java | 2 +- .../api/networking/storage/IStackWatcher.java | 4 +- .../networking/storage/IStackWatcherHost.java | 4 +- .../api/networking/storage/IStorageGrid.java | 8 ++-- .../api/networking/ticking/IGridTickable.java | 20 ++++----- .../api/networking/ticking/ITickManager.java | 20 ++++----- .../networking/ticking/TickingRequest.java | 24 +++++----- .../java/appeng/api/parts/IAlphaPassItem.java | 2 +- .../java/appeng/api/parts/IBoxProvider.java | 2 +- .../appeng/api/parts/IFacadeContainer.java | 12 ++--- .../java/appeng/api/parts/IFacadePart.java | 12 ++--- .../api/parts/IPartCollisionHelper.java | 4 +- .../java/appeng/api/parts/IPartHelper.java | 22 +++++----- src/main/java/appeng/api/parts/IPartHost.java | 20 ++++----- src/main/java/appeng/api/parts/IPartItem.java | 6 +-- .../appeng/api/parts/IPartRenderHelper.java | 38 ++++++++-------- src/main/java/appeng/api/parts/LayerBase.java | 4 +- .../appeng/api/recipes/ICraftHandler.java | 4 +- .../java/appeng/api/recipes/IIngredient.java | 24 +++++----- .../appeng/api/recipes/IRecipeHandler.java | 2 +- .../appeng/api/recipes/ResolverResultSet.java | 4 +- .../appeng/api/storage/ICellContainer.java | 2 +- .../java/appeng/api/storage/ICellHandler.java | 26 +++++------ .../appeng/api/storage/ICellInventory.java | 4 +- .../appeng/api/storage/ICellProvider.java | 6 +-- .../appeng/api/storage/ICellRegistry.java | 14 +++--- .../api/storage/ICellWorkbenchItem.java | 10 ++--- .../api/storage/IExternalStorageHandler.java | 8 ++-- .../api/storage/IExternalStorageRegistry.java | 8 ++-- .../java/appeng/api/storage/IMEInventory.java | 10 ++--- .../api/storage/IMEInventoryHandler.java | 14 +++--- .../java/appeng/api/storage/IMEMonitor.java | 2 +- .../storage/IMEMonitorHandlerReceiver.java | 4 +- .../appeng/api/storage/IStorageHelper.java | 14 +++--- .../api/storage/IStorageMonitorable.java | 2 +- .../appeng/api/storage/MEMonitorHandler.java | 4 +- .../appeng/api/storage/StorageChannel.java | 2 +- .../api/storage/data/IAEFluidStack.java | 14 +++--- .../appeng/api/storage/data/IAEItemStack.java | 20 ++++----- .../appeng/api/storage/data/IAEStack.java | 44 +++++++++---------- .../api/storage/data/IAETagCompound.java | 6 +-- .../api/storage/data/IItemContainer.java | 6 +-- .../appeng/api/storage/data/IItemList.java | 10 ++--- src/main/java/appeng/api/util/AEColor.java | 2 +- .../appeng/api/util/AEItemDefinition.java | 6 +-- .../java/appeng/api/util/ICommonTile.java | 2 +- .../java/appeng/api/util/IConfigManager.java | 14 +++--- .../java/appeng/api/util/IOrientable.java | 4 +- 193 files changed, 715 insertions(+), 746 deletions(-) diff --git a/src/api/java/baubles/api/BaublesApi.java b/src/api/java/baubles/api/BaublesApi.java index ca94fcd5..f2e2d85b 100644 --- a/src/api/java/baubles/api/BaublesApi.java +++ b/src/api/java/baubles/api/BaublesApi.java @@ -1,10 +1,10 @@ package baubles.api; -import java.lang.reflect.Method; - +import cpw.mods.fml.common.FMLLog; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; -import cpw.mods.fml.common.FMLLog; + +import java.lang.reflect.Method; @@ -12,7 +12,7 @@ import cpw.mods.fml.common.FMLLog; * @author Azanor */ public class BaublesApi { - + static Method getBaubles; /** * Retrieves the baubles inventory for the supplied player @@ -25,10 +25,10 @@ public class BaublesApi { getBaubles = fake.getMethod("getPlayerBaubles", EntityPlayer.class); } ot = (IInventory) getBaubles.invoke(null, player); - } catch(Exception ex) { + } catch(Exception ex) { FMLLog.warning("[Baubles API] Could not invoke baubles.common.lib.PlayerHandler method getPlayerBaubles"); } return ot; } - + } diff --git a/src/api/java/baubles/api/IBauble.java b/src/api/java/baubles/api/IBauble.java index de85ff10..d5ce3461 100644 --- a/src/api/java/baubles/api/IBauble.java +++ b/src/api/java/baubles/api/IBauble.java @@ -4,31 +4,31 @@ import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; /** - * + * * @author Azanor - * + * * This interface should be extended by items that can be worn in bauble slots * */ public interface IBauble { - + /** - * This method return the type of bauble this is. + * This method return the type of bauble this is. * Type is used to determine the slots it can go into. */ public BaubleType getBaubleType(ItemStack itemstack); - + /** * This method is called once per tick if the bauble is being worn by a player */ public void onWornTick(ItemStack itemstack, EntityLivingBase player); - + /** * This method is called when the bauble is equipped by a player */ public void onEquipped(ItemStack itemstack, EntityLivingBase player); - + /** * This method is called when the bauble is unequipped by a player */ @@ -38,7 +38,7 @@ public interface IBauble { * can this bauble be placed in a bauble slot */ public boolean canEquip(ItemStack itemstack, EntityLivingBase player); - + /** * Can this bauble be removed from a bauble slot */ diff --git a/src/api/java/buildcraft/api/blueprints/BlueprintDeployer.java b/src/api/java/buildcraft/api/blueprints/BlueprintDeployer.java index 044db825..5bea0990 100644 --- a/src/api/java/buildcraft/api/blueprints/BlueprintDeployer.java +++ b/src/api/java/buildcraft/api/blueprints/BlueprintDeployer.java @@ -8,11 +8,11 @@ */ package buildcraft.api.blueprints; -import java.io.File; - import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; +import java.io.File; + /** * This class is provided as a utility class for third-party mods that would * like to easily deploy structures that are written in blueprints. It does @@ -35,12 +35,12 @@ public abstract class BlueprintDeployer { */ public abstract void deployBlueprint(World world, int x, int y, int z, ForgeDirection dir, File file); - + /** *Deploy the contents of the byte array as if the builder was located at *{x, y, z} facing the direction dir. */ - + public abstract void deployBlueprintFromFileStream(World world, int x, int y, int z, ForgeDirection dir, byte [] data); diff --git a/src/api/java/buildcraft/api/blueprints/IBuilderContext.java b/src/api/java/buildcraft/api/blueprints/IBuilderContext.java index 43e829f6..a6e3b020 100644 --- a/src/api/java/buildcraft/api/blueprints/IBuilderContext.java +++ b/src/api/java/buildcraft/api/blueprints/IBuilderContext.java @@ -8,10 +8,9 @@ */ package buildcraft.api.blueprints; -import net.minecraft.world.World; - import buildcraft.api.core.IBox; import buildcraft.api.core.Position; +import net.minecraft.world.World; /** * This interface provide contextual information when building or initializing diff --git a/src/api/java/buildcraft/api/blueprints/MappingRegistry.java b/src/api/java/buildcraft/api/blueprints/MappingRegistry.java index 4c64d40f..e42b0d3c 100644 --- a/src/api/java/buildcraft/api/blueprints/MappingRegistry.java +++ b/src/api/java/buildcraft/api/blueprints/MappingRegistry.java @@ -8,17 +8,16 @@ */ package buildcraft.api.blueprints; -import java.util.ArrayList; -import java.util.HashMap; - import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.item.Item; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; - import net.minecraftforge.common.util.Constants; +import java.util.ArrayList; +import java.util.HashMap; + public class MappingRegistry { public HashMap blockToId = new HashMap(); diff --git a/src/api/java/buildcraft/api/blueprints/Schematic.java b/src/api/java/buildcraft/api/blueprints/Schematic.java index 8708f562..11c87e99 100644 --- a/src/api/java/buildcraft/api/blueprints/Schematic.java +++ b/src/api/java/buildcraft/api/blueprints/Schematic.java @@ -8,16 +8,14 @@ */ package buildcraft.api.blueprints; -import java.util.LinkedList; - +import buildcraft.api.core.IInvSlot; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; - import net.minecraftforge.common.util.Constants; -import buildcraft.api.core.IInvSlot; +import java.util.LinkedList; /** * This class allow to specify specific behavior for blocks stored in diff --git a/src/api/java/buildcraft/api/blueprints/SchematicBlock.java b/src/api/java/buildcraft/api/blueprints/SchematicBlock.java index 053da34c..5a8dbc30 100644 --- a/src/api/java/buildcraft/api/blueprints/SchematicBlock.java +++ b/src/api/java/buildcraft/api/blueprints/SchematicBlock.java @@ -8,9 +8,6 @@ */ package buildcraft.api.blueprints; -import java.util.ArrayList; -import java.util.LinkedList; - import net.minecraft.block.Block; import net.minecraft.block.BlockFalling; import net.minecraft.block.BlockLiquid; @@ -18,10 +15,12 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; - import net.minecraftforge.common.util.Constants; import net.minecraftforge.fluids.BlockFluidBase; +import java.util.ArrayList; +import java.util.LinkedList; + public class SchematicBlock extends SchematicBlockBase { public Block block = null; diff --git a/src/api/java/buildcraft/api/blueprints/SchematicEntity.java b/src/api/java/buildcraft/api/blueprints/SchematicEntity.java index 51a0de18..acd68473 100644 --- a/src/api/java/buildcraft/api/blueprints/SchematicEntity.java +++ b/src/api/java/buildcraft/api/blueprints/SchematicEntity.java @@ -8,9 +8,7 @@ */ package buildcraft.api.blueprints; -import java.util.ArrayList; -import java.util.LinkedList; - +import buildcraft.api.core.Position; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityList; import net.minecraft.item.Item; @@ -19,10 +17,10 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagDouble; import net.minecraft.nbt.NBTTagFloat; import net.minecraft.nbt.NBTTagList; - import net.minecraftforge.common.util.Constants; -import buildcraft.api.core.Position; +import java.util.ArrayList; +import java.util.LinkedList; public class SchematicEntity extends Schematic { diff --git a/src/api/java/buildcraft/api/blueprints/SchematicFactory.java b/src/api/java/buildcraft/api/blueprints/SchematicFactory.java index 9572a869..ccfab046 100644 --- a/src/api/java/buildcraft/api/blueprints/SchematicFactory.java +++ b/src/api/java/buildcraft/api/blueprints/SchematicFactory.java @@ -8,10 +8,10 @@ */ package buildcraft.api.blueprints; -import java.util.HashMap; - import net.minecraft.nbt.NBTTagCompound; +import java.util.HashMap; + public abstract class SchematicFactory { private static final HashMap factories = new HashMap(); diff --git a/src/api/java/buildcraft/api/blueprints/SchematicMask.java b/src/api/java/buildcraft/api/blueprints/SchematicMask.java index 9abbeb54..c16c3137 100644 --- a/src/api/java/buildcraft/api/blueprints/SchematicMask.java +++ b/src/api/java/buildcraft/api/blueprints/SchematicMask.java @@ -8,13 +8,12 @@ */ package buildcraft.api.blueprints; -import java.util.LinkedList; - +import buildcraft.api.core.BuildCraftAPI; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; -import buildcraft.api.core.BuildCraftAPI; +import java.util.LinkedList; public class SchematicMask extends SchematicBlockBase { diff --git a/src/api/java/buildcraft/api/blueprints/SchematicRegistry.java b/src/api/java/buildcraft/api/blueprints/SchematicRegistry.java index dbf404b0..2ffae37d 100644 --- a/src/api/java/buildcraft/api/blueprints/SchematicRegistry.java +++ b/src/api/java/buildcraft/api/blueprints/SchematicRegistry.java @@ -8,19 +8,17 @@ */ package buildcraft.api.blueprints; -import java.lang.reflect.InvocationTargetException; -import java.util.HashMap; -import java.util.HashSet; - +import buildcraft.api.core.JavaTools; import net.minecraft.block.Block; import net.minecraft.block.ITileEntityProvider; import net.minecraft.entity.Entity; import net.minecraft.init.Blocks; - import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.config.Property; -import buildcraft.api.core.JavaTools; +import java.lang.reflect.InvocationTargetException; +import java.util.HashMap; +import java.util.HashSet; public final class SchematicRegistry { diff --git a/src/api/java/buildcraft/api/blueprints/SchematicTile.java b/src/api/java/buildcraft/api/blueprints/SchematicTile.java index 81af354b..5beb98dc 100644 --- a/src/api/java/buildcraft/api/blueprints/SchematicTile.java +++ b/src/api/java/buildcraft/api/blueprints/SchematicTile.java @@ -8,15 +8,14 @@ */ package buildcraft.api.blueprints; -import java.util.ArrayList; -import java.util.LinkedList; - +import buildcraft.api.core.JavaTools; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; -import buildcraft.api.core.JavaTools; +import java.util.ArrayList; +import java.util.LinkedList; public class SchematicTile extends SchematicBlock { diff --git a/src/api/java/buildcraft/api/core/BuildCraftAPI.java b/src/api/java/buildcraft/api/core/BuildCraftAPI.java index 57fc9617..8225cfe9 100644 --- a/src/api/java/buildcraft/api/core/BuildCraftAPI.java +++ b/src/api/java/buildcraft/api/core/BuildCraftAPI.java @@ -8,12 +8,12 @@ */ package buildcraft.api.core; -import java.util.HashSet; -import java.util.Set; - import net.minecraft.block.Block; import net.minecraft.world.IBlockAccess; +import java.util.HashSet; +import java.util.Set; + public final class BuildCraftAPI { public static ICoreProxy proxy; diff --git a/src/api/java/buildcraft/api/core/IIconProvider.java b/src/api/java/buildcraft/api/core/IIconProvider.java index 2734415d..e7156396 100644 --- a/src/api/java/buildcraft/api/core/IIconProvider.java +++ b/src/api/java/buildcraft/api/core/IIconProvider.java @@ -8,11 +8,10 @@ */ package buildcraft.api.core; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.util.IIcon; - import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.util.IIcon; public interface IIconProvider { diff --git a/src/api/java/buildcraft/api/core/Position.java b/src/api/java/buildcraft/api/core/Position.java index 3e63991b..efe78ca3 100644 --- a/src/api/java/buildcraft/api/core/Position.java +++ b/src/api/java/buildcraft/api/core/Position.java @@ -10,7 +10,6 @@ package buildcraft.api.core; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; - import net.minecraftforge.common.util.ForgeDirection; public class Position { diff --git a/src/api/java/buildcraft/api/filler/IFillerPattern.java b/src/api/java/buildcraft/api/filler/IFillerPattern.java index 09d55d40..3063c8ea 100644 --- a/src/api/java/buildcraft/api/filler/IFillerPattern.java +++ b/src/api/java/buildcraft/api/filler/IFillerPattern.java @@ -8,10 +8,9 @@ */ package buildcraft.api.filler; -import net.minecraft.util.IIcon; - import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.util.IIcon; public interface IFillerPattern { diff --git a/src/api/java/buildcraft/api/filler/IFillerRegistry.java b/src/api/java/buildcraft/api/filler/IFillerRegistry.java index ffcedb31..7d1c0e84 100644 --- a/src/api/java/buildcraft/api/filler/IFillerRegistry.java +++ b/src/api/java/buildcraft/api/filler/IFillerRegistry.java @@ -8,10 +8,10 @@ */ package buildcraft.api.filler; -import java.util.Set; - import buildcraft.api.gates.IAction; +import java.util.Set; + public interface IFillerRegistry { void addPattern(IFillerPattern pattern); diff --git a/src/api/java/buildcraft/api/fuels/IronEngineCoolant.java b/src/api/java/buildcraft/api/fuels/IronEngineCoolant.java index 78cf315b..b2ce1c96 100644 --- a/src/api/java/buildcraft/api/fuels/IronEngineCoolant.java +++ b/src/api/java/buildcraft/api/fuels/IronEngineCoolant.java @@ -8,17 +8,15 @@ */ package buildcraft.api.fuels; -import java.util.HashMap; -import java.util.Map; - +import buildcraft.api.core.StackKey; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; - import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidStack; -import buildcraft.api.core.StackKey; +import java.util.HashMap; +import java.util.Map; public final class IronEngineCoolant { @@ -74,7 +72,7 @@ public final class IronEngineCoolant { * Adds a solid coolant like Ice Blocks. The FluidStack must contain a * registered Coolant Fluid or nothing will happen. You do not need to call * this for Fluid Containers. - * + * * @param item * @param coolant */ diff --git a/src/api/java/buildcraft/api/fuels/IronEngineFuel.java b/src/api/java/buildcraft/api/fuels/IronEngineFuel.java index 68b6653c..6439d1d4 100644 --- a/src/api/java/buildcraft/api/fuels/IronEngineFuel.java +++ b/src/api/java/buildcraft/api/fuels/IronEngineFuel.java @@ -8,12 +8,12 @@ */ package buildcraft.api.fuels; -import java.util.HashMap; -import java.util.Map; - import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidRegistry; +import java.util.HashMap; +import java.util.Map; + public final class IronEngineFuel { public static Map fuels = new HashMap(); diff --git a/src/api/java/buildcraft/api/gates/ActionManager.java b/src/api/java/buildcraft/api/gates/ActionManager.java index 2b5ddda0..d47125b8 100644 --- a/src/api/java/buildcraft/api/gates/ActionManager.java +++ b/src/api/java/buildcraft/api/gates/ActionManager.java @@ -8,16 +8,15 @@ */ package buildcraft.api.gates; +import buildcraft.api.transport.IPipeTile; +import net.minecraft.block.Block; +import net.minecraft.tileentity.TileEntity; + import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; -import net.minecraft.block.Block; -import net.minecraft.tileentity.TileEntity; - -import buildcraft.api.transport.IPipeTile; - public final class ActionManager { public static Map triggers = new HashMap(); diff --git a/src/api/java/buildcraft/api/gates/GateExpansionController.java b/src/api/java/buildcraft/api/gates/GateExpansionController.java index 20f38713..fe4f8c39 100644 --- a/src/api/java/buildcraft/api/gates/GateExpansionController.java +++ b/src/api/java/buildcraft/api/gates/GateExpansionController.java @@ -8,10 +8,11 @@ */ package buildcraft.api.gates; -import java.util.List; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; +import java.util.List; + public abstract class GateExpansionController { public final IGateExpansion type; diff --git a/src/api/java/buildcraft/api/gates/GateExpansions.java b/src/api/java/buildcraft/api/gates/GateExpansions.java index 4800a7fc..1da61b31 100644 --- a/src/api/java/buildcraft/api/gates/GateExpansions.java +++ b/src/api/java/buildcraft/api/gates/GateExpansions.java @@ -8,14 +8,14 @@ */ package buildcraft.api.gates; +import com.google.common.collect.BiMap; +import com.google.common.collect.HashBiMap; + import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; -import com.google.common.collect.BiMap; -import com.google.common.collect.HashBiMap; - public final class GateExpansions { private static final Map expansions = new HashMap(); diff --git a/src/api/java/buildcraft/api/gates/IAction.java b/src/api/java/buildcraft/api/gates/IAction.java index 503c645f..c550d7fd 100644 --- a/src/api/java/buildcraft/api/gates/IAction.java +++ b/src/api/java/buildcraft/api/gates/IAction.java @@ -8,10 +8,10 @@ */ package buildcraft.api.gates; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.util.IIcon; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.util.IIcon; public interface IAction { diff --git a/src/api/java/buildcraft/api/gates/IActionProvider.java b/src/api/java/buildcraft/api/gates/IActionProvider.java index 84393a82..418377c7 100644 --- a/src/api/java/buildcraft/api/gates/IActionProvider.java +++ b/src/api/java/buildcraft/api/gates/IActionProvider.java @@ -8,11 +8,11 @@ */ package buildcraft.api.gates; -import java.util.LinkedList; - import net.minecraft.block.Block; import net.minecraft.tileentity.TileEntity; +import java.util.LinkedList; + public interface IActionProvider { /** diff --git a/src/api/java/buildcraft/api/gates/ITrigger.java b/src/api/java/buildcraft/api/gates/ITrigger.java index ea2c3ab0..9c6a2a0e 100644 --- a/src/api/java/buildcraft/api/gates/ITrigger.java +++ b/src/api/java/buildcraft/api/gates/ITrigger.java @@ -8,10 +8,10 @@ */ package buildcraft.api.gates; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.util.IIcon; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.util.IIcon; public interface ITrigger { diff --git a/src/api/java/buildcraft/api/gates/ITriggerProvider.java b/src/api/java/buildcraft/api/gates/ITriggerProvider.java index a955d12b..2ff88a64 100644 --- a/src/api/java/buildcraft/api/gates/ITriggerProvider.java +++ b/src/api/java/buildcraft/api/gates/ITriggerProvider.java @@ -8,12 +8,11 @@ */ package buildcraft.api.gates; -import java.util.LinkedList; - +import buildcraft.api.transport.IPipeTile; import net.minecraft.block.Block; import net.minecraft.tileentity.TileEntity; -import buildcraft.api.transport.IPipeTile; +import java.util.LinkedList; public interface ITriggerProvider { diff --git a/src/api/java/buildcraft/api/gates/TriggerParameter.java b/src/api/java/buildcraft/api/gates/TriggerParameter.java index 46336c15..442c60dc 100644 --- a/src/api/java/buildcraft/api/gates/TriggerParameter.java +++ b/src/api/java/buildcraft/api/gates/TriggerParameter.java @@ -18,7 +18,7 @@ public class TriggerParameter implements ITriggerParameter { /* * (non-Javadoc) - * + * * @see net.minecraft.src.buildcraft.api.gates.ITriggerParameter#getItemStack() */ @Override @@ -28,7 +28,7 @@ public class TriggerParameter implements ITriggerParameter { /* * (non-Javadoc) - * + * * @see net.minecraft.src.buildcraft.api.gates.ITriggerParameter#set(net.minecraft.src.ItemStack) */ @Override @@ -41,7 +41,7 @@ public class TriggerParameter implements ITriggerParameter { /* * (non-Javadoc) - * + * * @see net.minecraft.src.buildcraft.api.gates.ITriggerParameter#writeToNBT(net.minecraft.src.NBTTagCompound) */ @Override @@ -55,7 +55,7 @@ public class TriggerParameter implements ITriggerParameter { /* * (non-Javadoc) - * + * * @see net.minecraft.src.buildcraft.api.gates.ITriggerParameter#readFromNBT(net.minecraft.src.NBTTagCompound) */ @Override @@ -66,7 +66,7 @@ public class TriggerParameter implements ITriggerParameter { stack = new ItemStack((Item) Item.itemRegistry.getObject(itemID), 1, compound.getInteger("itemDMG")); return; } - + stack = ItemStack.loadItemStackFromNBT(compound.getCompoundTag("stack")); } diff --git a/src/api/java/buildcraft/api/mj/MjAPI.java b/src/api/java/buildcraft/api/mj/MjAPI.java index b9314d74..6d933101 100644 --- a/src/api/java/buildcraft/api/mj/MjAPI.java +++ b/src/api/java/buildcraft/api/mj/MjAPI.java @@ -8,14 +8,14 @@ */ package buildcraft.api.mj; +import buildcraft.api.core.JavaTools; +import buildcraft.api.power.PowerHandler; + import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; -import buildcraft.api.core.JavaTools; -import buildcraft.api.power.PowerHandler; - public final class MjAPI { static Map MjBatteries = new HashMap(); diff --git a/src/api/java/buildcraft/api/mj/MjAPILegacy.java b/src/api/java/buildcraft/api/mj/MjAPILegacy.java index 9d125399..a0d18af3 100644 --- a/src/api/java/buildcraft/api/mj/MjAPILegacy.java +++ b/src/api/java/buildcraft/api/mj/MjAPILegacy.java @@ -8,13 +8,11 @@ */ package buildcraft.api.mj; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.world.World; - -import net.minecraftforge.common.util.ForgeDirection; - import buildcraft.api.power.IPowerReceptor; import buildcraft.api.power.PowerHandler; +import net.minecraft.tileentity.TileEntity; +import net.minecraft.world.World; +import net.minecraftforge.common.util.ForgeDirection; public class MjAPILegacy implements IPowerReceptor { private final PowerHandler powerHandler; diff --git a/src/api/java/buildcraft/api/mj/MjBattery.java b/src/api/java/buildcraft/api/mj/MjBattery.java index 1c0ad5c4..212c350c 100644 --- a/src/api/java/buildcraft/api/mj/MjBattery.java +++ b/src/api/java/buildcraft/api/mj/MjBattery.java @@ -8,11 +8,7 @@ */ package buildcraft.api.mj; -import java.lang.annotation.ElementType; -import java.lang.annotation.Inherited; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; +import java.lang.annotation.*; /** * This annotation is used for tiles that need to interface with BuildCraft diff --git a/src/api/java/buildcraft/api/power/IPowerReceptor.java b/src/api/java/buildcraft/api/power/IPowerReceptor.java index 17dca98c..c7939419 100644 --- a/src/api/java/buildcraft/api/power/IPowerReceptor.java +++ b/src/api/java/buildcraft/api/power/IPowerReceptor.java @@ -9,7 +9,6 @@ package buildcraft.api.power; import net.minecraft.world.World; - import net.minecraftforge.common.util.ForgeDirection; /** diff --git a/src/api/java/buildcraft/api/power/PowerHandler.java b/src/api/java/buildcraft/api/power/PowerHandler.java index f1d63562..407800d4 100644 --- a/src/api/java/buildcraft/api/power/PowerHandler.java +++ b/src/api/java/buildcraft/api/power/PowerHandler.java @@ -8,13 +8,11 @@ */ package buildcraft.api.power; -import net.minecraft.nbt.NBTTagCompound; - -import net.minecraftforge.common.util.ForgeDirection; - import buildcraft.api.core.SafeTimeTracker; import buildcraft.api.mj.MjAPI; import buildcraft.api.mj.MjBattery; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraftforge.common.util.ForgeDirection; /** * The PowerHandler is similar to FluidTank in that it holds your power and diff --git a/src/api/java/buildcraft/api/recipes/IAssemblyRecipeManager.java b/src/api/java/buildcraft/api/recipes/IAssemblyRecipeManager.java index bbd02409..0a6e64fa 100644 --- a/src/api/java/buildcraft/api/recipes/IAssemblyRecipeManager.java +++ b/src/api/java/buildcraft/api/recipes/IAssemblyRecipeManager.java @@ -8,10 +8,10 @@ */ package buildcraft.api.recipes; -import java.util.List; - import net.minecraft.item.ItemStack; +import java.util.List; + public interface IAssemblyRecipeManager { public interface IAssemblyRecipe { @@ -25,7 +25,7 @@ public interface IAssemblyRecipeManager { /** * Add an Assembly Table recipe. - * + * * @param input * Object... containing either an ItemStack, or a paired string * and integer(ex: "dyeBlue", 1) diff --git a/src/api/java/buildcraft/api/recipes/IIntegrationRecipeManager.java b/src/api/java/buildcraft/api/recipes/IIntegrationRecipeManager.java index 842b4436..fae9dea7 100644 --- a/src/api/java/buildcraft/api/recipes/IIntegrationRecipeManager.java +++ b/src/api/java/buildcraft/api/recipes/IIntegrationRecipeManager.java @@ -8,10 +8,10 @@ */ package buildcraft.api.recipes; -import java.util.List; - import net.minecraft.item.ItemStack; +import java.util.List; + /** * The Integration Table's primary purpose is to modify an input item's NBT * data. As such its not a "traditional" type of recipe. Rather than predefined diff --git a/src/api/java/buildcraft/api/recipes/IRefineryRecipeManager.java b/src/api/java/buildcraft/api/recipes/IRefineryRecipeManager.java index 498c3e2e..f33d7988 100644 --- a/src/api/java/buildcraft/api/recipes/IRefineryRecipeManager.java +++ b/src/api/java/buildcraft/api/recipes/IRefineryRecipeManager.java @@ -8,10 +8,10 @@ */ package buildcraft.api.recipes; -import java.util.SortedSet; - import net.minecraftforge.fluids.FluidStack; +import java.util.SortedSet; + public interface IRefineryRecipeManager { void addRecipe(FluidStack ingredient, FluidStack result, int energy, int delay); diff --git a/src/api/java/buildcraft/api/transport/IPipeConnection.java b/src/api/java/buildcraft/api/transport/IPipeConnection.java index 27ca26ff..26a14c26 100644 --- a/src/api/java/buildcraft/api/transport/IPipeConnection.java +++ b/src/api/java/buildcraft/api/transport/IPipeConnection.java @@ -8,9 +8,8 @@ */ package buildcraft.api.transport; -import net.minecraftforge.common.util.ForgeDirection; - import buildcraft.api.transport.IPipeTile.PipeType; +import net.minecraftforge.common.util.ForgeDirection; public interface IPipeConnection { diff --git a/src/api/java/buildcraft/api/transport/IPipeTile.java b/src/api/java/buildcraft/api/transport/IPipeTile.java index 94516c8f..2c983116 100644 --- a/src/api/java/buildcraft/api/transport/IPipeTile.java +++ b/src/api/java/buildcraft/api/transport/IPipeTile.java @@ -9,7 +9,6 @@ package buildcraft.api.transport; import net.minecraft.item.ItemStack; - import net.minecraftforge.common.util.ForgeDirection; public interface IPipeTile { @@ -35,7 +34,7 @@ public interface IPipeTile { /** * True if the pipe is connected to the block/pipe in the specific direction - * + * * @param with * @return true if connect */ diff --git a/src/api/java/buildcraft/api/transport/PipeManager.java b/src/api/java/buildcraft/api/transport/PipeManager.java index f0e6e74c..3c0d1194 100644 --- a/src/api/java/buildcraft/api/transport/PipeManager.java +++ b/src/api/java/buildcraft/api/transport/PipeManager.java @@ -8,11 +8,11 @@ */ package buildcraft.api.transport; +import net.minecraft.world.World; + import java.util.ArrayList; import java.util.List; -import net.minecraft.world.World; - public abstract class PipeManager { public static List extractionHandlers = new ArrayList(); diff --git a/src/api/java/buildcraft/api/transport/PipeWire.java b/src/api/java/buildcraft/api/transport/PipeWire.java index e7551091..1225d814 100644 --- a/src/api/java/buildcraft/api/transport/PipeWire.java +++ b/src/api/java/buildcraft/api/transport/PipeWire.java @@ -8,11 +8,11 @@ */ package buildcraft.api.transport; -import java.util.Locale; - import net.minecraft.item.Item; import net.minecraft.item.ItemStack; +import java.util.Locale; + public enum PipeWire { RED, BLUE, GREEN, YELLOW; diff --git a/src/api/java/cofh/api/energy/EnergyStorage.java b/src/api/java/cofh/api/energy/EnergyStorage.java index b3383aeb..2e6bbbd8 100644 --- a/src/api/java/cofh/api/energy/EnergyStorage.java +++ b/src/api/java/cofh/api/energy/EnergyStorage.java @@ -4,9 +4,9 @@ import net.minecraft.nbt.NBTTagCompound; /** * Reference implementation of {@link IEnergyStorage}. Use/extend this or implement your own. - * + * * @author King Lemming - * + * */ public class EnergyStorage implements IEnergyStorage { @@ -89,7 +89,7 @@ public class EnergyStorage implements IEnergyStorage { /** * This function is included to allow for server -> client sync. Do not call this externally to the containing Tile Entity, as not all IEnergyHandlers are * guaranteed to have it. - * + * * @param energy */ public void setEnergyStored(int energy) { @@ -106,7 +106,7 @@ public class EnergyStorage implements IEnergyStorage { /** * This function is included to allow the containing tile to directly and efficiently modify the energy contained in the EnergyStorage. Do not rely on this * externally, as not all IEnergyHandlers are guaranteed to have it. - * + * * @param energy */ public void modifyEnergyStored(int energy) { diff --git a/src/api/java/cofh/api/energy/IEnergyConnection.java b/src/api/java/cofh/api/energy/IEnergyConnection.java index 63faffb9..ee9651b3 100644 --- a/src/api/java/cofh/api/energy/IEnergyConnection.java +++ b/src/api/java/cofh/api/energy/IEnergyConnection.java @@ -5,11 +5,11 @@ import net.minecraftforge.common.util.ForgeDirection; /** * Implement this interface on TileEntities which should connect to energy transportation blocks. This is intended for blocks which generate energy but do not * accept it; otherwise just use IEnergyHandler. - * + * * Note that {@link IEnergyHandler} is an extension of this. - * + * * @author King Lemming - * + * */ public interface IEnergyConnection { diff --git a/src/api/java/cofh/api/energy/IEnergyContainerItem.java b/src/api/java/cofh/api/energy/IEnergyContainerItem.java index 0bcfda60..c92f8a6f 100644 --- a/src/api/java/cofh/api/energy/IEnergyContainerItem.java +++ b/src/api/java/cofh/api/energy/IEnergyContainerItem.java @@ -4,17 +4,17 @@ import net.minecraft.item.ItemStack; /** * Implement this interface on Item classes that support external manipulation of their internal energy storages. - * + * * A reference implementation is provided {@link ItemEnergyContainer}. - * + * * @author King Lemming - * + * */ public interface IEnergyContainerItem { /** * Adds energy to a container item. Returns the quantity of energy that was accepted. This should always return 0 if the item cannot be externally charged. - * + * * @param container * ItemStack to be charged. * @param maxReceive @@ -28,7 +28,7 @@ public interface IEnergyContainerItem { /** * Removes energy from a container item. Returns the quantity of energy that was removed. This should always return 0 if the item cannot be externally * discharged. - * + * * @param container * ItemStack to be discharged. * @param maxExtract diff --git a/src/api/java/cofh/api/energy/IEnergyHandler.java b/src/api/java/cofh/api/energy/IEnergyHandler.java index 3df31234..037066d3 100644 --- a/src/api/java/cofh/api/energy/IEnergyHandler.java +++ b/src/api/java/cofh/api/energy/IEnergyHandler.java @@ -4,17 +4,17 @@ import net.minecraftforge.common.util.ForgeDirection; /** * Implement this interface on Tile Entities which should handle energy, generally storing it in one or more internal {@link IEnergyStorage} objects. - * + * * A reference implementation is provided {@link TileEnergyHandler}. - * + * * @author King Lemming - * + * */ public interface IEnergyHandler extends IEnergyConnection { /** * Add energy to an IEnergyHandler, internal distribution is left entirely to the IEnergyHandler. - * + * * @param from * Orientation the energy is received from. * @param maxReceive @@ -27,7 +27,7 @@ public interface IEnergyHandler extends IEnergyConnection { /** * Remove energy from an IEnergyHandler, internal distribution is left entirely to the IEnergyHandler. - * + * * @param from * Orientation the energy is extracted from. * @param maxExtract diff --git a/src/api/java/cofh/api/energy/IEnergyStorage.java b/src/api/java/cofh/api/energy/IEnergyStorage.java index 1e84bc22..88c53739 100644 --- a/src/api/java/cofh/api/energy/IEnergyStorage.java +++ b/src/api/java/cofh/api/energy/IEnergyStorage.java @@ -2,17 +2,17 @@ package cofh.api.energy; /** * An energy storage is the unit of interaction with Energy inventories. - * + * * A reference implementation can be found at {@link EnergyStorage}. - * + * * @author King Lemming - * + * */ public interface IEnergyStorage { /** * Adds energy to the storage. Returns quantity of energy that was accepted. - * + * * @param maxReceive * Maximum amount of energy to be inserted. * @param simulate @@ -23,7 +23,7 @@ public interface IEnergyStorage { /** * Removes energy from the storage. Returns quantity of energy that was removed. - * + * * @param maxExtract * Maximum amount of energy to be extracted. * @param simulate diff --git a/src/api/java/cofh/api/energy/ItemEnergyContainer.java b/src/api/java/cofh/api/energy/ItemEnergyContainer.java index 055ae45b..2d3659cb 100644 --- a/src/api/java/cofh/api/energy/ItemEnergyContainer.java +++ b/src/api/java/cofh/api/energy/ItemEnergyContainer.java @@ -6,9 +6,9 @@ import net.minecraft.nbt.NBTTagCompound; /** * Reference implementation of {@link IEnergyContainerItem}. Use/extend this or implement your own. - * + * * @author King Lemming - * + * */ public class ItemEnergyContainer extends Item implements IEnergyContainerItem { diff --git a/src/api/java/cofh/api/energy/TileEnergyHandler.java b/src/api/java/cofh/api/energy/TileEnergyHandler.java index a7fabeb7..b0bb72d6 100644 --- a/src/api/java/cofh/api/energy/TileEnergyHandler.java +++ b/src/api/java/cofh/api/energy/TileEnergyHandler.java @@ -6,9 +6,9 @@ import net.minecraftforge.common.util.ForgeDirection; /** * Reference implementation of {@link IEnergyHandler}. Use/extend this or implement your own. - * + * * @author King Lemming - * + * */ public class TileEnergyHandler extends TileEntity implements IEnergyHandler { diff --git a/src/api/java/dan200/computercraft/api/ComputerCraftAPI.java b/src/api/java/dan200/computercraft/api/ComputerCraftAPI.java index 9b8833d2..b8eedde8 100644 --- a/src/api/java/dan200/computercraft/api/ComputerCraftAPI.java +++ b/src/api/java/dan200/computercraft/api/ComputerCraftAPI.java @@ -22,7 +22,7 @@ import java.lang.reflect.Method; * but may be called before it is fully loaded. */ public final class ComputerCraftAPI -{ +{ /** * Creates a numbered directory in a subfolder of the save directory for a given world, and returns that number.
* Use in conjuction with createSaveDirMount() to create a unique place for your peripherals or media items to store files.
@@ -45,7 +45,7 @@ public final class ComputerCraftAPI } return -1; } - + /** * Creates a file system mount that maps to a subfolder of the save directory for a given world, and returns it.
* Use in conjuction with IComputerAccess.mount() or IComputerAccess.mountWritable() to mount a folder from the @@ -75,7 +75,7 @@ public final class ComputerCraftAPI } return null; } - + /** * Creates a file system mount to a resource folder, and returns it.
* Use in conjuction with IComputerAccess.mount() or IComputerAccess.mountWritable() to mount a resource folder onto a computers file system.
@@ -102,7 +102,7 @@ public final class ComputerCraftAPI } return null; } - + /** * Registers a peripheral handler to convert blocks into IPeripheral implementations. * @see dan200.computercraft.api.peripheral.IPeripheral @@ -200,7 +200,7 @@ public final class ComputerCraftAPI // The functions below here are private, and are used to interface with the non-API ComputerCraft classes. // Reflection is used here so you can develop your mod in MCP without decompiling ComputerCraft and including // it in your solution. - + private static void findCC() { if( !ccSearched ) { @@ -250,9 +250,9 @@ public final class ComputerCraftAPI System.out.println( "ComputerCraftAPI: ComputerCraft method " + name + " not found." ); return null; } - } - - private static boolean ccSearched = false; + } + + private static boolean ccSearched = false; private static Class computerCraft = null; private static Method computerCraft_createUniqueNumberedSaveDir = null; private static Method computerCraft_createSaveDirMount = null; diff --git a/src/api/java/dan200/computercraft/api/filesystem/IMount.java b/src/api/java/dan200/computercraft/api/filesystem/IMount.java index e340496b..a47b4d33 100644 --- a/src/api/java/dan200/computercraft/api/filesystem/IMount.java +++ b/src/api/java/dan200/computercraft/api/filesystem/IMount.java @@ -47,11 +47,11 @@ public interface IMount * @return the size of the file, in bytes */ public long getSize( String path ) throws IOException; - + /** * Opens a file with a given path, and returns an inputstream representing it's contents. * @param path A file path in normalised format, relative to the mount location. ie: "programs/myprogram" * @return a stream representing the contents of the file */ - public InputStream openForRead( String path ) throws IOException; + public InputStream openForRead( String path ) throws IOException; } diff --git a/src/api/java/dan200/computercraft/api/lua/ILuaContext.java b/src/api/java/dan200/computercraft/api/lua/ILuaContext.java index 787a93d4..f769b177 100644 --- a/src/api/java/dan200/computercraft/api/lua/ILuaContext.java +++ b/src/api/java/dan200/computercraft/api/lua/ILuaContext.java @@ -23,7 +23,7 @@ public interface ILuaContext * @throws InterruptedException If the user shuts down or reboots the computercraft while pullEvent() is waiting for an event, InterruptedException will be thrown. This exception must not be caught or intercepted, or the computercraft will leak memory and end up in a broken state. */ public Object[] pullEvent( String filter ) throws LuaException, InterruptedException; - + /** * The same as pullEvent(), except "terminated" events are ignored. Only use this if you want to prevent program termination, which is not recommended. This method is exactly equivalent to os.pullEventRaw() in lua. * @param filter A specific event to wait for, or null to wait for any event @@ -32,7 +32,7 @@ public interface ILuaContext * @see #pullEvent(String) */ public Object[] pullEventRaw( String filter ) throws InterruptedException; - + /** * Yield the current coroutine with some arguments until it is resumed. This method is exactly equivalent to coroutine.yield() in lua. Use pullEvent() if you wish to wait for events. * @param arguments An object array containing the arguments to pass to coroutine.yield() diff --git a/src/api/java/dan200/computercraft/api/media/IMedia.java b/src/api/java/dan200/computercraft/api/media/IMedia.java index 637a2970..e63b6ea5 100644 --- a/src/api/java/dan200/computercraft/api/media/IMedia.java +++ b/src/api/java/dan200/computercraft/api/media/IMedia.java @@ -30,7 +30,7 @@ public interface IMedia * @return true if the label was updated, false if the label may not be modified. */ public boolean setLabel( ItemStack stack, String label ); - + /** * If this disk represents an item with audio (like a record), get the readable name of the audio track. ie: "Jonathon Coulton - Still Alive" * @param stack The itemstack to inspect. @@ -43,8 +43,8 @@ public interface IMedia * @param stack The itemstack to inspect. * @return The name, or null if this item does not represent an item with audio. */ - public String getAudioRecordName( ItemStack stack ); - + public String getAudioRecordName( ItemStack stack ); + /** * If this disk represents an item with data (like a floppy disk), get a mount representing it's contents. This will be mounted onto the filesystem of the computercraft while the media is in the disk drive. * @param stack The itemstack to inspect. diff --git a/src/api/java/dan200/computercraft/api/peripheral/IComputerAccess.java b/src/api/java/dan200/computercraft/api/peripheral/IComputerAccess.java index 1c9327d2..28daddce 100644 --- a/src/api/java/dan200/computercraft/api/peripheral/IComputerAccess.java +++ b/src/api/java/dan200/computercraft/api/peripheral/IComputerAccess.java @@ -64,14 +64,14 @@ public interface IComputerAccess * @see #mountWritable(String, IWritableMount) */ public void unmount( String location ); - + /** * Returns the numerical ID of this computercraft.
* This is the same number obtained by calling os.getComputerID() or running the "id" program from lua, * and is guarunteed unique. This number will be positive. * @return The identifier. */ - public int getID(); + public int getID(); /** * Causes an event to be raised on this computercraft, which the computercraft can respond to by calling @@ -79,7 +79,7 @@ public interface IComputerAccess * this peripheral. * @param event A string identifying the type of event that has occurred, this will be * returned as the first value from os.pullEvent(). It is recommended that you - * you choose a name that is unique, and recognisable as originating from your + * you choose a name that is unique, and recognisable as originating from your * peripheral. eg: If your peripheral type is "button", a suitable event would be * "button_pressed". * @param arguments In addition to a name, you may pass an array of extra arguments to the event, that will diff --git a/src/api/java/dan200/computercraft/api/peripheral/IPeripheral.java b/src/api/java/dan200/computercraft/api/peripheral/IPeripheral.java index 99396dd9..65dde57e 100644 --- a/src/api/java/dan200/computercraft/api/peripheral/IPeripheral.java +++ b/src/api/java/dan200/computercraft/api/peripheral/IPeripheral.java @@ -22,16 +22,16 @@ public interface IPeripheral * @return A string identifying the type of peripheral. */ public String getType(); - + /** - * Should return an array of strings that identify the methods that this + * Should return an array of strings that identify the methods that this * peripheral exposes to Lua. This will be called once before each attachment, * and should not change when called multiple times. * @return An array of strings representing method names. * @see #callMethod */ public String[] getMethodNames(); - + /** * This is called when a lua program on an attached computercraft calls peripheral.call() with * one of the methods exposed by getMethodNames().
@@ -61,7 +61,7 @@ public interface IPeripheral * @see #getMethodNames */ public Object[] callMethod( IComputerAccess computer, ILuaContext context, int method, Object[] arguments ) throws LuaException, InterruptedException; - + /** * Is called when canAttachToSide has returned true, and a computercraft is attaching to the peripheral. * This will occur when a peripheral is placed next to an active computercraft, when a computercraft is turned on next to a peripheral, diff --git a/src/api/java/dan200/computercraft/api/turtle/ITurtleUpgrade.java b/src/api/java/dan200/computercraft/api/turtle/ITurtleUpgrade.java index 461d6e2b..eab61996 100644 --- a/src/api/java/dan200/computercraft/api/turtle/ITurtleUpgrade.java +++ b/src/api/java/dan200/computercraft/api/turtle/ITurtleUpgrade.java @@ -27,25 +27,25 @@ public interface ITurtleUpgrade * @see dan200.computercraft.api.ComputerCraftAPI#registerTurtleUpgrade( dan200.computercraft.api.turtle.ITurtleUpgrade ) */ public int getUpgradeID(); - + /** * Return a String to describe this type of turtle in turtle item names. * Examples of built-in adjectives are "Wireless", "Mining" and "Crafty". - */ + */ public String getUnlocalisedAdjective(); /** * Return whether this turtle adds a tool or a peripheral to the turtle. * Currently, turtle crafting is restricted to one tool & one peripheral per turtle. * @see TurtleUpgradeType for the differences between the two. - */ + */ public TurtleUpgradeType getType(); - + /** * Return an item stack representing the type of item that a turtle must be crafted * with to create a turtle which holds this turtle. * Currently, turtle crafting is restricted to one tool & one peripheral per turtle. - */ + */ public ItemStack getCraftingItem(); /** @@ -58,7 +58,7 @@ public interface ITurtleUpgrade * @param side Which side of the turtle (left or right) that the turtle resides on. * @return The newly created peripheral. You may return null if this turtle is a Tool * and this method is not expected to be called. - */ + */ public IPeripheral createPeripheral( ITurtleAccess turtle, TurtleSide side ); /** diff --git a/src/api/java/dan200/computercraft/api/turtle/TurtleUpgradeType.java b/src/api/java/dan200/computercraft/api/turtle/TurtleUpgradeType.java index ef84ee9b..bab92e7a 100644 --- a/src/api/java/dan200/computercraft/api/turtle/TurtleUpgradeType.java +++ b/src/api/java/dan200/computercraft/api/turtle/TurtleUpgradeType.java @@ -18,7 +18,7 @@ public enum TurtleUpgradeType * and turtle.attack() methods (Such as pickaxe or sword on Mining and Melee turtles). */ Tool, - + /** * A peripheral adds a special peripheral which is attached to the side of the turtle, * and can be interacted with the peripheral API (Such as the modem on Wireless Turtles). diff --git a/src/api/java/dan200/computercraft/api/turtle/TurtleVerb.java b/src/api/java/dan200/computercraft/api/turtle/TurtleVerb.java index 3a8fb092..099ff952 100644 --- a/src/api/java/dan200/computercraft/api/turtle/TurtleVerb.java +++ b/src/api/java/dan200/computercraft/api/turtle/TurtleVerb.java @@ -18,7 +18,7 @@ public enum TurtleVerb * The turtle called turtle.dig(), turtle.digUp() or turtle.digDown() */ Dig, - + /** * The turtle called turtle.attack(), turtle.attackUp() or turtle.attackDown() */ diff --git a/src/api/java/mcp/mobius/waila/api/IWailaBlock.java b/src/api/java/mcp/mobius/waila/api/IWailaBlock.java index 8b4dd131..d1db8455 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaBlock.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaBlock.java @@ -1,9 +1,9 @@ package mcp.mobius.waila.api; -import java.util.List; - import net.minecraft.item.ItemStack; +import java.util.List; + @Deprecated public interface IWailaBlock { /* @@ -12,7 +12,7 @@ public interface IWailaBlock { * You get the world, the player and the location of the block. With that, it is easy to gather information & tile entities */ ItemStack getWailaStack(IWailaDataAccessor accessor, IWailaConfigHandler config); - + /* Waila HUD is divided into 3 zones. The head corresponds to the item name, * body to where you mostly want to put informations, and I reserve the tail for modname display */ @@ -27,7 +27,7 @@ public interface IWailaBlock { * * Always return the currenttip is you don't want to modify the current zone. */ - + List getWailaHead(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config); List getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config); List getWailaTail(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config); diff --git a/src/api/java/mcp/mobius/waila/api/IWailaBlockDecorator.java b/src/api/java/mcp/mobius/waila/api/IWailaBlockDecorator.java index 935d475f..af2471f1 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaBlockDecorator.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaBlockDecorator.java @@ -4,6 +4,6 @@ import net.minecraft.item.ItemStack; public interface IWailaBlockDecorator { - void decorateBlock(ItemStack itemStack, IWailaDataAccessor accessor, IWailaConfigHandler config); - + void decorateBlock(ItemStack itemStack, IWailaDataAccessor accessor, IWailaConfigHandler config); + } diff --git a/src/api/java/mcp/mobius/waila/api/IWailaConfigHandler.java b/src/api/java/mcp/mobius/waila/api/IWailaConfigHandler.java index faede63f..1259e17b 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaConfigHandler.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaConfigHandler.java @@ -6,10 +6,10 @@ import java.util.Set; public interface IWailaConfigHandler { /* Returns a set of all the currently loaded modules in the config handler */ public Set getModuleNames(); - + /* Returns all the currently available options for a given module */ public HashMap getConfigKeys(String modName); - + /* Add a new option to a given module * * modName is the name of the module to add the option to (ie : Buildcraft, IndustrialCraft2, etc) @@ -17,12 +17,12 @@ public interface IWailaConfigHandler { * name is the human readable name of the option (ie : "Tank content", "Max EU Input") * */ //public void addConfig(String modName, String key, String name); - + /* Returns the current value of an option (true/false) with a default value defvalue if not set*/ public boolean getConfig(String key, boolean defvalue); - - /* Returns the current value of an option (true/false) with a default value true if not set*/ - public boolean getConfig(String key); - + + /* Returns the current value of an option (true/false) with a default value true if not set*/ + public boolean getConfig(String key); + //public void setConfig(String key, boolean value); } diff --git a/src/api/java/mcp/mobius/waila/api/IWailaDataAccessor.java b/src/api/java/mcp/mobius/waila/api/IWailaDataAccessor.java index 02886248..4ca82c25 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaDataAccessor.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaDataAccessor.java @@ -16,7 +16,7 @@ import net.minecraftforge.common.util.ForgeDirection; */ public interface IWailaDataAccessor { - + World getWorld(); EntityPlayer getPlayer(); Block getBlock(); diff --git a/src/api/java/mcp/mobius/waila/api/IWailaDataProvider.java b/src/api/java/mcp/mobius/waila/api/IWailaDataProvider.java index 4859d9cd..405bce19 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaDataProvider.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaDataProvider.java @@ -1,9 +1,9 @@ package mcp.mobius.waila.api; -import java.util.List; - import net.minecraft.item.ItemStack; +import java.util.List; + public interface IWailaDataProvider{ /* * Use this method to return an item stack in case the default lookup system fails. @@ -11,7 +11,7 @@ public interface IWailaDataProvider{ * You get the world, the player and the location of the block. With that, it is easy to gather information & tile entities */ ItemStack getWailaStack(IWailaDataAccessor accessor, IWailaConfigHandler config); - + /* Waila HUD is divided into 3 zones. The head corresponds to the item name, * body to where you mostly want to put informations, and I reserve the tail for modname display */ @@ -26,7 +26,7 @@ public interface IWailaDataProvider{ * * Always return the currenttip is you don't want to modify the current zone. */ - + List getWailaHead(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config); List getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config); List getWailaTail(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config); diff --git a/src/api/java/mcp/mobius/waila/api/IWailaEntityProvider.java b/src/api/java/mcp/mobius/waila/api/IWailaEntityProvider.java index 9548289a..28c4c525 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaEntityProvider.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaEntityProvider.java @@ -1,14 +1,14 @@ package mcp.mobius.waila.api; -import java.util.List; - import net.minecraft.entity.Entity; +import java.util.List; + public interface IWailaEntityProvider { - + /* A way to get an override on the entity returned by the raytracing */ Entity getWailaOverride(IWailaEntityAccessor accessor, IWailaConfigHandler config); - + /* The classical HEAD/BODY/TAIL text getters */ List getWailaHead(Entity entity, List currenttip, IWailaEntityAccessor accessor, IWailaConfigHandler config); List getWailaBody(Entity entity, List currenttip, IWailaEntityAccessor accessor, IWailaConfigHandler config); diff --git a/src/api/java/mcp/mobius/waila/api/IWailaFMPAccessor.java b/src/api/java/mcp/mobius/waila/api/IWailaFMPAccessor.java index 19e01fa9..be44b7ba 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaFMPAccessor.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaFMPAccessor.java @@ -1,7 +1,6 @@ package mcp.mobius.waila.api; import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.MovingObjectPosition; diff --git a/src/api/java/mcp/mobius/waila/api/IWailaFMPDecorator.java b/src/api/java/mcp/mobius/waila/api/IWailaFMPDecorator.java index 839af31f..f8aa9620 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaFMPDecorator.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaFMPDecorator.java @@ -3,5 +3,5 @@ package mcp.mobius.waila.api; import net.minecraft.item.ItemStack; public interface IWailaFMPDecorator { - void decorateBlock(ItemStack itemStack, IWailaFMPAccessor accessor, IWailaConfigHandler config); + void decorateBlock(ItemStack itemStack, IWailaFMPAccessor accessor, IWailaConfigHandler config); } diff --git a/src/api/java/mcp/mobius/waila/api/IWailaFMPProvider.java b/src/api/java/mcp/mobius/waila/api/IWailaFMPProvider.java index 232c83ef..87a56234 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaFMPProvider.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaFMPProvider.java @@ -1,9 +1,9 @@ package mcp.mobius.waila.api; -import java.util.List; - import net.minecraft.item.ItemStack; +import java.util.List; + public interface IWailaFMPProvider { /* The classical HEAD/BODY/TAIL text getters */ List getWailaHead(ItemStack itemStack, List currenttip, IWailaFMPAccessor accessor, IWailaConfigHandler config); diff --git a/src/api/java/mcp/mobius/waila/api/IWailaRegistrar.java b/src/api/java/mcp/mobius/waila/api/IWailaRegistrar.java index 6e4c0b9a..16d1bbc9 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaRegistrar.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaRegistrar.java @@ -3,13 +3,13 @@ package mcp.mobius.waila.api; public interface IWailaRegistrar { /* Add a config option in the section modname with displayed text configtext and access key keyname */ public void addConfig(String modname, String keyname, String configtext); - public void addConfigRemote(String modname, String keyname, String configtext); + public void addConfigRemote(String modname, String keyname, String configtext); public void addConfig(String modname, String keyname); - public void addConfigRemote(String modname, String keyname); - + public void addConfigRemote(String modname, String keyname); + /* Register a stack overrider for the given blockID */ - public void registerStackProvider(IWailaDataProvider dataProvider, Class block); - + public void registerStackProvider(IWailaDataProvider dataProvider, Class block); + /* Same thing, but works on a class hierarchy instead */ public void registerHeadProvider(IWailaDataProvider dataProvider, Class block); public void registerBodyProvider(IWailaDataProvider dataProvider, Class block); @@ -20,21 +20,21 @@ public interface IWailaRegistrar { public void registerBodyProvider(IWailaEntityProvider dataProvider, Class entity); public void registerTailProvider(IWailaEntityProvider dataProvider, Class entity); public void registerOverrideEntityProvider(IWailaEntityProvider dataProvider, Class entity); - + /* FMP Providers */ public void registerHeadProvider(IWailaFMPProvider dataProvider, String name); public void registerBodyProvider(IWailaFMPProvider dataProvider, String name); public void registerTailProvider(IWailaFMPProvider dataProvider, String name); - + /* The block decorators */ public void registerDecorator(IWailaBlockDecorator decorator, Class block); public void registerDecorator(IWailaFMPDecorator decorator, String name); - - /* Selective NBT key syncing. Will register a key to sync over the network for the given class (block, te or ent). - * Accept * as a ending wildcard + + /* Selective NBT key syncing. Will register a key to sync over the network for the given class (block, te or ent). + * Accept * as a ending wildcard * registerNBTKey("bob.*", MyBlock.class) - * registerNBTKey("data.life", MyEntity.class) - * registerNBTKey("*", MyTileEntity.class) will reproduce the full tag syncing from 1.4.5 + * registerNBTKey("data.life", MyEntity.class) + * registerNBTKey("*", MyTileEntity.class) will reproduce the full tag syncing from 1.4.5 * */ public void registerSyncedNBTKey(String key, Class target); diff --git a/src/api/java/mcp/mobius/waila/api/IWailaSummaryProvider.java b/src/api/java/mcp/mobius/waila/api/IWailaSummaryProvider.java index f7906498..5f9e523d 100644 --- a/src/api/java/mcp/mobius/waila/api/IWailaSummaryProvider.java +++ b/src/api/java/mcp/mobius/waila/api/IWailaSummaryProvider.java @@ -1,9 +1,9 @@ package mcp.mobius.waila.api; -import java.util.LinkedHashMap; - import net.minecraft.item.ItemStack; +import java.util.LinkedHashMap; + public interface IWailaSummaryProvider { /* This interface is used to control the display data in the description screen */ @@ -16,6 +16,6 @@ public interface IWailaSummaryProvider { //int getEnchantability(ItemStack stack); //int getDamageVsEntity(ItemStack stack); //int getDurability(ItemStack stack); - + LinkedHashMap getSummary(ItemStack stack, LinkedHashMap currentSummary, IWailaConfigHandler config); } diff --git a/src/api/java/mcp/mobius/waila/api/SpecialChars.java b/src/api/java/mcp/mobius/waila/api/SpecialChars.java index 5bd92a82..c44e7774 100644 --- a/src/api/java/mcp/mobius/waila/api/SpecialChars.java +++ b/src/api/java/mcp/mobius/waila/api/SpecialChars.java @@ -3,7 +3,7 @@ package mcp.mobius.waila.api; public class SpecialChars { public static String MCStyle = "\u00A7"; - + public static String BLACK = MCStyle + "0"; public static String DBLUE = MCStyle + "1"; public static String DGREEN = MCStyle + "2"; @@ -19,22 +19,22 @@ public class SpecialChars { public static String RED = MCStyle + "c"; public static String LPURPLE = MCStyle + "d"; public static String YELLOW = MCStyle + "e"; - public static String WHITE = MCStyle + "f"; - + public static String WHITE = MCStyle + "f"; + public static String OBF = MCStyle + "k"; public static String BOLD = MCStyle + "l"; public static String STRIKE = MCStyle + "m"; public static String UNDER = MCStyle + "n"; public static String ITALIC = MCStyle + "o"; - public static String RESET = MCStyle + "r"; + public static String RESET = MCStyle + "r"; public static String WailaStyle = "\u00A4"; public static String WailaIcon = "\u00A5"; public static String TAB = WailaStyle + WailaStyle +"a"; public static String ALIGNRIGHT = WailaStyle + WailaStyle +"b"; - public static String ALIGNCENTER = WailaStyle + WailaStyle +"c"; + public static String ALIGNCENTER = WailaStyle + WailaStyle +"c"; public static String HEART = WailaStyle + WailaIcon +"a"; public static String HHEART = WailaStyle + WailaIcon +"b"; public static String EHEART = WailaStyle + WailaIcon +"c"; - + } diff --git a/src/main/java/appeng/api/AEApi.java b/src/main/java/appeng/api/AEApi.java index 1a2e31bc..a0db6462 100644 --- a/src/main/java/appeng/api/AEApi.java +++ b/src/main/java/appeng/api/AEApi.java @@ -1,11 +1,11 @@ package appeng.api; /** - * + * * Entry point for api. - * + * * Available IMCs: - * + * */ public class AEApi { @@ -14,7 +14,7 @@ public class AEApi /** * API Entry Point. - * + * * @return the {@link IAppEngApi} or null if the instance could not be retrieved */ public static IAppEngApi instance() diff --git a/src/main/java/appeng/api/IAppEngApi.java b/src/main/java/appeng/api/IAppEngApi.java index c8546bdb..83d7a15e 100644 --- a/src/main/java/appeng/api/IAppEngApi.java +++ b/src/main/java/appeng/api/IAppEngApi.java @@ -53,7 +53,7 @@ public interface IAppEngApi /** * create a grid node for your {@link IGridHost} - * + * * @param block grid block * @return grid node of block */ @@ -61,7 +61,7 @@ public interface IAppEngApi /** * create a connection between two {@link IGridNode} - * + * * @param a to be connected gridnode * @param b to be connected gridnode * @throws FailedConnection diff --git a/src/main/java/appeng/api/config/PowerUnits.java b/src/main/java/appeng/api/config/PowerUnits.java index edcf5d71..ed3e9ba0 100644 --- a/src/main/java/appeng/api/config/PowerUnits.java +++ b/src/main/java/appeng/api/config/PowerUnits.java @@ -25,11 +25,11 @@ public enum PowerUnits /** * do power conversion using AE's conversion rates. - * + * * Example: PowerUnits.EU.convertTo( PowerUnits.AE, 32 ); - * + * * will normally returns 64, as it will convert the EU, to AE with AE's power settings. - * + * * @param target target power unit * @param value value * @return value converted to target units, from this units. diff --git a/src/main/java/appeng/api/config/Upgrades.java b/src/main/java/appeng/api/config/Upgrades.java index cd3a2d22..dabc0f54 100644 --- a/src/main/java/appeng/api/config/Upgrades.java +++ b/src/main/java/appeng/api/config/Upgrades.java @@ -1,9 +1,9 @@ package appeng.api.config; -import java.util.HashMap; - import net.minecraft.item.ItemStack; +import java.util.HashMap; + public enum Upgrades { /** diff --git a/src/main/java/appeng/api/events/LocatableEventAnnounce.java b/src/main/java/appeng/api/events/LocatableEventAnnounce.java index af9b6f85..7665e41d 100644 --- a/src/main/java/appeng/api/events/LocatableEventAnnounce.java +++ b/src/main/java/appeng/api/events/LocatableEventAnnounce.java @@ -5,7 +5,7 @@ import cpw.mods.fml.common.eventhandler.Event; /** * Input Event: - * + * * Used to Notify the Location Registry of objects, and their availability. */ public class LocatableEventAnnounce extends Event diff --git a/src/main/java/appeng/api/features/IGrinderEntry.java b/src/main/java/appeng/api/features/IGrinderEntry.java index a7549f2f..4313d0a4 100644 --- a/src/main/java/appeng/api/features/IGrinderEntry.java +++ b/src/main/java/appeng/api/features/IGrinderEntry.java @@ -10,49 +10,49 @@ public interface IGrinderEntry /** * the current input - * + * * @return input that the grinder will accept. */ public ItemStack getInput(); /** * lets you change the grinder recipe by changing its input. - * + * * @param input input item */ public void setInput(ItemStack input); /** * gets the current output - * + * * @return output that the grinder will produce */ public ItemStack getOutput(); /** * gets the current output - * + * * @return output that the grinder will produce */ public ItemStack getOptionalOutput(); /** * gets the current output - * + * * @return output that the grinder will produce */ public ItemStack getSecondOptionalOutput(); /** * allows you to change the output. - * + * * @param output output item */ public void setOutput(ItemStack output); /** * stack, and 0.0-1.0 chance that it will be generated. - * + * * @param output output item * @param chance generation chance */ @@ -60,14 +60,14 @@ public interface IGrinderEntry /** * 0.0 - 1.0 the chance that the optional output will be generated. - * + * * @return chance of optional output */ public float getOptionalChance(); /** * stack, and 0.0-1.0 chance that it will be generated. - * + * * @param output second optional output item * @param chance second optional output chance */ @@ -75,21 +75,21 @@ public interface IGrinderEntry /** * 0.0 - 1.0 the chance that the optional output will be generated. - * + * * @return second optional output chance */ public float getSecondOptionalChance(); /** * Energy cost, in turns. - * + * * @return number of turns it takes to produce the output from the input. */ public int getEnergyCost(); /** * Allows you to adjust the number of turns - * + * * @param c number of turns to produce output. */ public void setEnergyCost(int c); diff --git a/src/main/java/appeng/api/features/IGrinderRegistry.java b/src/main/java/appeng/api/features/IGrinderRegistry.java index e34a9225..4548ad8d 100644 --- a/src/main/java/appeng/api/features/IGrinderRegistry.java +++ b/src/main/java/appeng/api/features/IGrinderRegistry.java @@ -12,14 +12,14 @@ public interface IGrinderRegistry /** * Current list of registered recipes, you can modify this if you want too. - * + * * @return currentlyRegisteredRecipes */ public List getRecipes(); /** * add a new recipe the easy way, in → out, how many turns., duplicates will not be added. - * + * * @param in input * @param out output * @param turns amount of turns to turn the input into the output @@ -28,7 +28,7 @@ public interface IGrinderRegistry /** * add a new recipe with optional outputs, duplicates will not be added. - * + * * @param in input * @param out output * @param optional optional output @@ -39,7 +39,7 @@ public interface IGrinderRegistry /** * add a new recipe with optional outputs, duplicates will not be added. - * + * * @param in input * @param out output * @param optional optional output @@ -52,7 +52,7 @@ public interface IGrinderRegistry /** * Searches for a recipe for a given input, and returns it. - * + * * @param input input * @return identified recipe or null */ diff --git a/src/main/java/appeng/api/features/IItemComparisonProvider.java b/src/main/java/appeng/api/features/IItemComparisonProvider.java index 6b7a11b1..229c0e99 100644 --- a/src/main/java/appeng/api/features/IItemComparisonProvider.java +++ b/src/main/java/appeng/api/features/IItemComparisonProvider.java @@ -13,7 +13,7 @@ public interface IItemComparisonProvider /** * should return a new IItemComparison, or return null if it doesn't handle * the supplied item. - * + * * @param is item * @return IItemComparison, or null */ @@ -21,7 +21,7 @@ public interface IItemComparisonProvider /** * Simple test for support ( AE generally skips this and calls the above function. ) - * + * * @param stack item * @return true, if getComparison will return a valid IItemComparison Object */ diff --git a/src/main/java/appeng/api/features/ILocatableRegistry.java b/src/main/java/appeng/api/features/ILocatableRegistry.java index c07b2300..0a1d58ae 100644 --- a/src/main/java/appeng/api/features/ILocatableRegistry.java +++ b/src/main/java/appeng/api/features/ILocatableRegistry.java @@ -9,7 +9,7 @@ public interface ILocatableRegistry /** * Attempts to find the object with the serial specified, if it can it * returns the object. - * + * * @param serial serial * @return requestedObject, or null */ diff --git a/src/main/java/appeng/api/features/IMatterCannonAmmoRegistry.java b/src/main/java/appeng/api/features/IMatterCannonAmmoRegistry.java index 18d9683c..9fe7857a 100644 --- a/src/main/java/appeng/api/features/IMatterCannonAmmoRegistry.java +++ b/src/main/java/appeng/api/features/IMatterCannonAmmoRegistry.java @@ -7,7 +7,7 @@ public interface IMatterCannonAmmoRegistry /** * register a new ammo, generally speaking this is based off of atomic weight to make it easier to guess at - * + * * @param ammo new ammo * @param weight atomic weight */ @@ -15,7 +15,7 @@ public interface IMatterCannonAmmoRegistry /** * get the penetration value for a particular ammo, 0 indicates a non-ammo. - * + * * @param is ammo * @return 0 or a valid penetration value. */ diff --git a/src/main/java/appeng/api/features/INetworkEncodable.java b/src/main/java/appeng/api/features/INetworkEncodable.java index 2fa66bf9..04f70a08 100644 --- a/src/main/java/appeng/api/features/INetworkEncodable.java +++ b/src/main/java/appeng/api/features/INetworkEncodable.java @@ -6,7 +6,7 @@ public interface INetworkEncodable { /** * Used to get the current key from the item. - * + * * @param item item * @return string key of item */ @@ -14,7 +14,7 @@ public interface INetworkEncodable { /** * Encode the wireless frequency via the Controller. - * + * * @param item * the wireless terminal. * @param encKey diff --git a/src/main/java/appeng/api/features/IP2PTunnelRegistry.java b/src/main/java/appeng/api/features/IP2PTunnelRegistry.java index e1c85c71..eeb41e67 100644 --- a/src/main/java/appeng/api/features/IP2PTunnelRegistry.java +++ b/src/main/java/appeng/api/features/IP2PTunnelRegistry.java @@ -1,7 +1,7 @@ package appeng.api.features; -import net.minecraft.item.ItemStack; import appeng.api.config.TunnelType; +import net.minecraft.item.ItemStack; /** * A Registry for how p2p Tunnels are attuned @@ -12,7 +12,7 @@ public interface IP2PTunnelRegistry /** * Allows third parties to register items from their mod as potential * attunements for AE's P2P Tunnels - * + * * @param trigger * - the item which triggers attunement * @param type @@ -22,7 +22,7 @@ public interface IP2PTunnelRegistry /** * returns null if no attunement can be found. - * + * * @param trigger attunement trigger * @return null if no attunement can be found or attunement */ diff --git a/src/main/java/appeng/api/features/IPlayerRegistry.java b/src/main/java/appeng/api/features/IPlayerRegistry.java index d52b0a03..9d5e95ff 100644 --- a/src/main/java/appeng/api/features/IPlayerRegistry.java +++ b/src/main/java/appeng/api/features/IPlayerRegistry.java @@ -1,8 +1,7 @@ package appeng.api.features; -import net.minecraft.entity.player.EntityPlayer; - import com.mojang.authlib.GameProfile; +import net.minecraft.entity.player.EntityPlayer; /** * Maintains a save specific list of userids and username combinations this greatly simplifies storage internally and diff --git a/src/main/java/appeng/api/features/IRecipeHandlerRegistry.java b/src/main/java/appeng/api/features/IRecipeHandlerRegistry.java index ee8324bb..17a0a8fe 100644 --- a/src/main/java/appeng/api/features/IRecipeHandlerRegistry.java +++ b/src/main/java/appeng/api/features/IRecipeHandlerRegistry.java @@ -9,9 +9,9 @@ public interface IRecipeHandlerRegistry /** * Add a new Recipe Handler to the parser. - * + * * MUST BE CALLED IN PRE-INIT - * + * * @param name name of crafthandler * @param handler class of crafthandler */ @@ -19,9 +19,9 @@ public interface IRecipeHandlerRegistry /** * Add a new resolver to the parser. - * + * * MUST BE CALLED IN PRE-INIT - * + * * @param sir sub item resolver */ void addNewSubItemResolver(ISubItemResolver sir); @@ -39,7 +39,7 @@ public interface IRecipeHandlerRegistry /** * resolve sub items by name. - * + * * @param nameSpace namespace of item * @param itemName full name of item * @return ResolverResult or ResolverResultSet diff --git a/src/main/java/appeng/api/features/ISpecialComparisonRegistry.java b/src/main/java/appeng/api/features/ISpecialComparisonRegistry.java index c51d85b4..33db6faf 100644 --- a/src/main/java/appeng/api/features/ISpecialComparisonRegistry.java +++ b/src/main/java/appeng/api/features/ISpecialComparisonRegistry.java @@ -4,14 +4,14 @@ import net.minecraft.item.ItemStack; /** * A Registry of any special comparison handlers for AE To use. - * + * */ public interface ISpecialComparisonRegistry { /** * return TheHandler or null. - * + * * @param stack item * @return a handler it found for a specific item */ @@ -19,7 +19,7 @@ public interface ISpecialComparisonRegistry /** * Register a new special comparison function with AE. - * + * * @param prov comparison provider */ public void addComparisonProvider(IItemComparisonProvider prov); diff --git a/src/main/java/appeng/api/features/IWirelessTermHandler.java b/src/main/java/appeng/api/features/IWirelessTermHandler.java index 7c29ea48..21468755 100644 --- a/src/main/java/appeng/api/features/IWirelessTermHandler.java +++ b/src/main/java/appeng/api/features/IWirelessTermHandler.java @@ -1,8 +1,8 @@ package appeng.api.features; +import appeng.api.util.IConfigManager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; -import appeng.api.util.IConfigManager; /** * A handler for a wireless terminal. @@ -18,7 +18,7 @@ public interface IWirelessTermHandler extends INetworkEncodable /** * use an amount of power, in AE units - * + * * @param amount * is in AE units ( 5 per MJ ), if you return false, the item should be dead and return false for * hasPower @@ -29,7 +29,7 @@ public interface IWirelessTermHandler extends INetworkEncodable /** * gets the power status of the item. - * + * * @param is wireless terminal * @return returns true if there is any power left. */ @@ -37,10 +37,10 @@ public interface IWirelessTermHandler extends INetworkEncodable /** * Return the config manager for the wireless terminal. - * + * * @param is wireless terminal * @return config manager of wireless terminal */ IConfigManager getConfigManager(ItemStack is); - + } \ No newline at end of file diff --git a/src/main/java/appeng/api/features/IWirelessTermRegistry.java b/src/main/java/appeng/api/features/IWirelessTermRegistry.java index 9d6d911b..a1d5804a 100644 --- a/src/main/java/appeng/api/features/IWirelessTermRegistry.java +++ b/src/main/java/appeng/api/features/IWirelessTermRegistry.java @@ -12,7 +12,7 @@ public interface IWirelessTermRegistry /** * add this handler to the list of other wireless handler. - * + * * @param handler wireless handler */ void registerWirelessHandler(IWirelessTermHandler handler); diff --git a/src/main/java/appeng/api/implementations/ICraftingPatternItem.java b/src/main/java/appeng/api/implementations/ICraftingPatternItem.java index c3d0a52e..2fb79274 100644 --- a/src/main/java/appeng/api/implementations/ICraftingPatternItem.java +++ b/src/main/java/appeng/api/implementations/ICraftingPatternItem.java @@ -1,9 +1,9 @@ package appeng.api.implementations; +import appeng.api.networking.crafting.ICraftingPatternDetails; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; -import appeng.api.networking.crafting.ICraftingPatternDetails; /** * Implemented on {@link Item} @@ -13,7 +13,7 @@ public interface ICraftingPatternItem /** * Access Details about a pattern - * + * * @param is pattern * @param w crafting world * @return details of pattern diff --git a/src/main/java/appeng/api/implementations/IUpgradeableHost.java b/src/main/java/appeng/api/implementations/IUpgradeableHost.java index 45a98af1..98999486 100644 --- a/src/main/java/appeng/api/implementations/IUpgradeableHost.java +++ b/src/main/java/appeng/api/implementations/IUpgradeableHost.java @@ -1,9 +1,9 @@ package appeng.api.implementations; -import appeng.api.util.IConfigurableObject; -import net.minecraft.tileentity.TileEntity; import appeng.api.config.Upgrades; import appeng.api.implementations.tiles.ISegmentedInventory; +import appeng.api.util.IConfigurableObject; +import net.minecraft.tileentity.TileEntity; public interface IUpgradeableHost extends IConfigurableObject, ISegmentedInventory { @@ -15,7 +15,7 @@ public interface IUpgradeableHost extends IConfigurableObject, ISegmentedInvento /** * the tile... - * + * * @return tile entity */ TileEntity getTile(); diff --git a/src/main/java/appeng/api/implementations/guiobjects/INetworkTool.java b/src/main/java/appeng/api/implementations/guiobjects/INetworkTool.java index b4d19999..cc170119 100644 --- a/src/main/java/appeng/api/implementations/guiobjects/INetworkTool.java +++ b/src/main/java/appeng/api/implementations/guiobjects/INetworkTool.java @@ -1,7 +1,7 @@ package appeng.api.implementations.guiobjects; -import net.minecraft.inventory.IInventory; import appeng.api.networking.IGridHost; +import net.minecraft.inventory.IInventory; /** * Obtained via {@link IGuiItem} getGuiObject diff --git a/src/main/java/appeng/api/implementations/items/IAEItemPowerStorage.java b/src/main/java/appeng/api/implementations/items/IAEItemPowerStorage.java index 5ab2ac99..800280bf 100644 --- a/src/main/java/appeng/api/implementations/items/IAEItemPowerStorage.java +++ b/src/main/java/appeng/api/implementations/items/IAEItemPowerStorage.java @@ -1,8 +1,8 @@ package appeng.api.implementations.items; -import net.minecraft.item.ItemStack; import appeng.api.config.AccessRestriction; import appeng.api.networking.energy.IAEPowerStorage; +import net.minecraft.item.ItemStack; /** * Basically the same as {@link IAEPowerStorage}, but for items. @@ -13,7 +13,7 @@ public interface IAEItemPowerStorage /** * Inject amt, power into the device, it will store what it can, and return * the amount unable to be stored. - * + * * @return amount unable to be stored */ public double injectAEPower(ItemStack is, double amt); @@ -21,7 +21,7 @@ public interface IAEItemPowerStorage /** * Attempt to extract power from the device, it will extract what it can and * return it. - * + * * @param amt to be extracted power from device * @return what it could extract */ @@ -40,7 +40,7 @@ public interface IAEItemPowerStorage /** * Control the power flow by telling what the network can do, either add? or * subtract? or both! - * + * * @return access restriction of network */ public AccessRestriction getPowerFlow(ItemStack is); diff --git a/src/main/java/appeng/api/implementations/items/IAEWrench.java b/src/main/java/appeng/api/implementations/items/IAEWrench.java index 9f913fa7..b17da87c 100644 --- a/src/main/java/appeng/api/implementations/items/IAEWrench.java +++ b/src/main/java/appeng/api/implementations/items/IAEWrench.java @@ -12,7 +12,7 @@ public interface IAEWrench /** * Check if the wrench can be used. - * + * * @param player wrenching player * @param x x pos of wrenched block * @param y y pos of wrenched block diff --git a/src/main/java/appeng/api/implementations/items/IBiometricCard.java b/src/main/java/appeng/api/implementations/items/IBiometricCard.java index bbf8f8e5..087cabf5 100644 --- a/src/main/java/appeng/api/implementations/items/IBiometricCard.java +++ b/src/main/java/appeng/api/implementations/items/IBiometricCard.java @@ -29,7 +29,7 @@ public interface IBiometricCard /** * Check if a permission is encoded on the card. - * + * * @param permission card * @return true if this permission is set on the card. */ @@ -37,7 +37,7 @@ public interface IBiometricCard /** * remove a permission from the item stack. - * + * * @param itemStack card * @param permission to be removed permission */ @@ -45,7 +45,7 @@ public interface IBiometricCard /** * add a permission to the item stack. - * + * * @param itemStack card * @param permission to be added permission */ @@ -53,7 +53,7 @@ public interface IBiometricCard /** * lets you handle submission of security values on the card for custom behavior. - * + * * @param registry security registry * @param pr player registry * @param is card diff --git a/src/main/java/appeng/api/implementations/items/IItemGroup.java b/src/main/java/appeng/api/implementations/items/IItemGroup.java index 2dce5719..384554bf 100644 --- a/src/main/java/appeng/api/implementations/items/IItemGroup.java +++ b/src/main/java/appeng/api/implementations/items/IItemGroup.java @@ -12,7 +12,7 @@ public interface IItemGroup /** * returning null, is the same as not implementing the interface at all. - * + * * @param is item * @return an unlocalized string to use for the items group name. */ diff --git a/src/main/java/appeng/api/implementations/items/IMemoryCard.java b/src/main/java/appeng/api/implementations/items/IMemoryCard.java index 14692313..0084dee2 100644 --- a/src/main/java/appeng/api/implementations/items/IMemoryCard.java +++ b/src/main/java/appeng/api/implementations/items/IMemoryCard.java @@ -6,7 +6,7 @@ import net.minecraft.nbt.NBTTagCompound; /** * Memory Card API - * + * * AE's Memory Card Item Class implements this interface. */ public interface IMemoryCard @@ -15,7 +15,7 @@ public interface IMemoryCard /** * Configures the data stored on the memory card, the SettingsName, will be * localized when displayed. - * + * * @param is item * @param SettingsName * unlocalized string that represents the tile entity. @@ -30,7 +30,7 @@ public interface IMemoryCard * returns the settings name provided by a previous call to * setMemoryCardContents, or "AppEng.GuiITooltip.Blank" if there was no * previous call to setMemoryCardContents. - * + * * @param is item * @return setting name */ @@ -45,7 +45,7 @@ public interface IMemoryCard /** * notify the user of a outcome related to the memory card. - * + * * @param player * that used the card. * @param msg diff --git a/src/main/java/appeng/api/implementations/items/ISpatialStorageCell.java b/src/main/java/appeng/api/implementations/items/ISpatialStorageCell.java index 5aaf997a..d92c3e37 100644 --- a/src/main/java/appeng/api/implementations/items/ISpatialStorageCell.java +++ b/src/main/java/appeng/api/implementations/items/ISpatialStorageCell.java @@ -1,10 +1,10 @@ package appeng.api.implementations.items; +import appeng.api.implementations.TransitionResult; +import appeng.api.util.WorldCoord; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; -import appeng.api.implementations.TransitionResult; -import appeng.api.util.WorldCoord; /** * Implemented on a {@link Item} @@ -32,7 +32,7 @@ public interface ISpatialStorageCell /** * get the currently stored size. - * + * * @param is spatial storage cell * @return size of spatial */ @@ -40,7 +40,7 @@ public interface ISpatialStorageCell /** * Minimum coordinates in its world for the storage cell. - * + * * @param is spatial storage cell * @return minimum coordinate of dimension */ @@ -48,7 +48,7 @@ public interface ISpatialStorageCell /** * Maximum coordinates in its world for the storage cell. - * + * * @param is spatial storage cell * @return maximum coordinate of dimension */ @@ -56,7 +56,7 @@ public interface ISpatialStorageCell /** * Perform a spatial swap with the contents of the cell, and the world. - * + * * @param is spatial storage cell * @param w world of spatial * @param min min coord diff --git a/src/main/java/appeng/api/implementations/items/IStorageCell.java b/src/main/java/appeng/api/implementations/items/IStorageCell.java index ef0d8420..ef6d928a 100644 --- a/src/main/java/appeng/api/implementations/items/IStorageCell.java +++ b/src/main/java/appeng/api/implementations/items/IStorageCell.java @@ -1,19 +1,19 @@ package appeng.api.implementations.items; -import net.minecraft.item.ItemStack; import appeng.api.storage.ICellWorkbenchItem; import appeng.api.storage.data.IAEItemStack; +import net.minecraft.item.ItemStack; /** * Any item which implements this can be treated as an IMEInventory via * Util.getCell / Util.isCell It automatically handles the internals and NBT * data, which is both nice, and bad for you! - * + * * Good cause it means you don't have to do anything, bad because you have * little to no control over it. - * + * * The standard AE implementation only provides 1-63 Types - * + * */ public interface IStorageCell extends ICellWorkbenchItem { @@ -21,7 +21,7 @@ public interface IStorageCell extends ICellWorkbenchItem /** * If this returns something where N % 8 != 0 Then you will be shot on * sight, or your car will explode, something like that least... - * + * * @param cellItem item * @return number of bytes */ @@ -29,7 +29,7 @@ public interface IStorageCell extends ICellWorkbenchItem /** * Determines the number of bytes used for any type included on the cell. - * + * * @param cellItem item * @return number of bytes */ @@ -38,7 +38,7 @@ public interface IStorageCell extends ICellWorkbenchItem /** * Must be between 1 and 63, indicates how many types you want to store on * the item. - * + * * @param cellItem item * @return number of types */ @@ -48,7 +48,7 @@ public interface IStorageCell extends ICellWorkbenchItem * Allows you to fine tune which items are allowed on a given cell, if you * don't care, just return false; As the handler for this type of cell is * still the default cells, the normal AE black list is also applied. - * + * * @param cellItem item * @param requestedAddition requested addition * @return true to preventAdditionOfItem @@ -59,7 +59,7 @@ public interface IStorageCell extends ICellWorkbenchItem * Allows you to specify if this storage cell can be stored inside other * storage cells, only set this for special items like the matter cannon * that are not general purpose storage. - * + * * @return true if the storage cell can be stored inside other storage * cells, this is generally false, except for certain situations * such as the matter cannon. @@ -69,7 +69,7 @@ public interface IStorageCell extends ICellWorkbenchItem /** * Allows an item to selectively enable or disable its status as a storage * cell. - * + * * @param i item * @return if the ItemStack should behavior as a storage cell. */ diff --git a/src/main/java/appeng/api/implementations/items/IStorageComponent.java b/src/main/java/appeng/api/implementations/items/IStorageComponent.java index 497d2768..31857fc2 100644 --- a/src/main/java/appeng/api/implementations/items/IStorageComponent.java +++ b/src/main/java/appeng/api/implementations/items/IStorageComponent.java @@ -13,7 +13,7 @@ public interface IStorageComponent * This isn't necessarily the same as if you make a storage cell out of it, * but all of AE's default cells do it that way, its currently only used for * the condenser. - * + * * @param is item * @return number of bytes */ @@ -21,7 +21,7 @@ public interface IStorageComponent /** * Just true or false for the item stack. - * + * * @param is item * @return true if item is a storage component */ diff --git a/src/main/java/appeng/api/implementations/items/IUpgradeModule.java b/src/main/java/appeng/api/implementations/items/IUpgradeModule.java index 55a8166b..0b117c0a 100644 --- a/src/main/java/appeng/api/implementations/items/IUpgradeModule.java +++ b/src/main/java/appeng/api/implementations/items/IUpgradeModule.java @@ -1,7 +1,7 @@ package appeng.api.implementations.items; -import net.minecraft.item.ItemStack; import appeng.api.config.Upgrades; +import net.minecraft.item.ItemStack; public interface IUpgradeModule { diff --git a/src/main/java/appeng/api/implementations/parts/IPartCable.java b/src/main/java/appeng/api/implementations/parts/IPartCable.java index 16009ca4..73a8898a 100644 --- a/src/main/java/appeng/api/implementations/parts/IPartCable.java +++ b/src/main/java/appeng/api/implementations/parts/IPartCable.java @@ -35,7 +35,7 @@ public interface IPartCable extends IPart, IGridHost /** * Change the color of the cable, this should cost a small amount of dye, or something. - * + * * @param newColor new color * @return if the color change was successful. */ @@ -43,16 +43,16 @@ public interface IPartCable extends IPart, IGridHost /** * Change sides on the cables node. - * + * * Called by AE, do not invoke. - * + * * @param sides sides of cable */ void setValidSides(EnumSet sides); /** * used to tests if a cable connects to neighbors visually. - * + * * @param side neighbor side * @return true if this side is currently connects to an external block. */ diff --git a/src/main/java/appeng/api/implementations/tiles/IChestOrDrive.java b/src/main/java/appeng/api/implementations/tiles/IChestOrDrive.java index 0b1388b9..8952474f 100644 --- a/src/main/java/appeng/api/implementations/tiles/IChestOrDrive.java +++ b/src/main/java/appeng/api/implementations/tiles/IChestOrDrive.java @@ -14,13 +14,13 @@ public interface IChestOrDrive extends ICellContainer, IGridHost, IOrientable /** * 0 - cell is missing. - * + * * 1 - green, - * + * * 2 - orange, - * + * * 3 - red - * + * * @param slot slot index * @return status of the slot, one of the above indices. */ diff --git a/src/main/java/appeng/api/implementations/tiles/IColorableTile.java b/src/main/java/appeng/api/implementations/tiles/IColorableTile.java index 03874ae2..cba8a6f7 100644 --- a/src/main/java/appeng/api/implementations/tiles/IColorableTile.java +++ b/src/main/java/appeng/api/implementations/tiles/IColorableTile.java @@ -1,8 +1,8 @@ package appeng.api.implementations.tiles; +import appeng.api.util.AEColor; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.util.AEColor; public interface IColorableTile { diff --git a/src/main/java/appeng/api/implementations/tiles/ICraftingMachine.java b/src/main/java/appeng/api/implementations/tiles/ICraftingMachine.java index 2f6071f5..bdcc997c 100644 --- a/src/main/java/appeng/api/implementations/tiles/ICraftingMachine.java +++ b/src/main/java/appeng/api/implementations/tiles/ICraftingMachine.java @@ -1,19 +1,19 @@ package appeng.api.implementations.tiles; +import appeng.api.networking.crafting.ICraftingPatternDetails; import net.minecraft.inventory.InventoryCrafting; import net.minecraftforge.common.util.ForgeDirection; -import appeng.api.networking.crafting.ICraftingPatternDetails; public interface ICraftingMachine { /** * inserts a crafting plan, and the necessary items into the crafting machine. - * + * * @param patternDetails details of pattern * @param table crafting table * @param ejectionDirection ejection direction - * + * * @return if it was accepted, all or nothing. */ boolean pushPattern(ICraftingPatternDetails patternDetails, InventoryCrafting table, ForgeDirection ejectionDirection); @@ -21,7 +21,7 @@ public interface ICraftingMachine /** * check if the crafting machine is accepting pushes via pushPattern, if this is false, all calls to push will fail, * you can try inserting into the inventory instead. - * + * * @return true, if pushPattern can complete, if its false push will always be false. */ boolean acceptsPlans(); diff --git a/src/main/java/appeng/api/implementations/tiles/ICrankable.java b/src/main/java/appeng/api/implementations/tiles/ICrankable.java index b709e23d..c887ca16 100644 --- a/src/main/java/appeng/api/implementations/tiles/ICrankable.java +++ b/src/main/java/appeng/api/implementations/tiles/ICrankable.java @@ -4,12 +4,12 @@ import net.minecraftforge.common.util.ForgeDirection; /** * Crank/Crankable API, - * + * * Tiles that Implement this can receive power, from the crank, and have the * crank placed on them. - * + * * Tiles that access other tiles that implement this method can act as Cranks. - * + * * This interface must be implemented by a tile entity. */ public interface ICrankable @@ -17,7 +17,7 @@ public interface ICrankable /** * Test if the crank can turn, return false if there is no work to be done. - * + * * @return if crank should be allowed to turn. */ boolean canTurn(); diff --git a/src/main/java/appeng/api/implementations/tiles/ISegmentedInventory.java b/src/main/java/appeng/api/implementations/tiles/ISegmentedInventory.java index b985b044..2bfd4bb1 100644 --- a/src/main/java/appeng/api/implementations/tiles/ISegmentedInventory.java +++ b/src/main/java/appeng/api/implementations/tiles/ISegmentedInventory.java @@ -8,7 +8,7 @@ public interface ISegmentedInventory /** * Access an internal inventory, note, not all inventories contain real items, some may be ghost items, and treating * them a real inventories will result in duplication. - * + * * @param name inventory name * @return inventory with inventory name */ diff --git a/src/main/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java b/src/main/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java index f6ef62fb..561c9688 100644 --- a/src/main/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java +++ b/src/main/java/appeng/api/implementations/tiles/ITileStorageMonitorable.java @@ -1,8 +1,8 @@ package appeng.api.implementations.tiles; -import net.minecraftforge.common.util.ForgeDirection; import appeng.api.networking.security.BaseActionSource; import appeng.api.storage.IStorageMonitorable; +import net.minecraftforge.common.util.ForgeDirection; /** * Implemented on inventories that can share their inventories with other networks, best example, ME Interface. diff --git a/src/main/java/appeng/api/implementations/tiles/IViewCellStorage.java b/src/main/java/appeng/api/implementations/tiles/IViewCellStorage.java index ab926a4e..e350b9be 100644 --- a/src/main/java/appeng/api/implementations/tiles/IViewCellStorage.java +++ b/src/main/java/appeng/api/implementations/tiles/IViewCellStorage.java @@ -7,7 +7,7 @@ public interface IViewCellStorage /** * should contains at least 5 slot, the first 5 - * + * * @return inventory with at least 5 slot */ IInventory getViewCellStorage(); diff --git a/src/main/java/appeng/api/integration/IBeeComparison.java b/src/main/java/appeng/api/integration/IBeeComparison.java index ab1ccb44..258ea700 100644 --- a/src/main/java/appeng/api/integration/IBeeComparison.java +++ b/src/main/java/appeng/api/integration/IBeeComparison.java @@ -3,10 +3,10 @@ package appeng.api.integration; /** * An interface to get access to the individual settings for AE's Internal Bee * Comparison handler. - * + * * Assessable via: ( IBeeComparison ) * IAEItemStack.getTagCompound().getSpecialComparison() - * + * * If you don't have the forestry API, just delete this file when using the API. */ public interface IBeeComparison diff --git a/src/main/java/appeng/api/movable/IMovableHandler.java b/src/main/java/appeng/api/movable/IMovableHandler.java index 78817bb0..97a44ccd 100644 --- a/src/main/java/appeng/api/movable/IMovableHandler.java +++ b/src/main/java/appeng/api/movable/IMovableHandler.java @@ -9,7 +9,7 @@ public interface IMovableHandler /** * if you return true from this, your saying you can handle the class, not * that single entity, you cannot opt out of single entities. - * + * * @param myClass tile entity class * @param tile tile entity * @return true if it can handle moving @@ -20,19 +20,19 @@ public interface IMovableHandler * request that the handler move the the tile from its current location to * the new one. the tile has already been invalidated, and the blocks have * already been fully moved. - * + * * Potential Example: * *
 	 * {@code
 	 * Chunk c = world.getChunkFromBlockCoords( x, z ); c.setChunkBlockTileEntity( x
 	 * & 0xF, y + y, z & 0xF, tile );
-	 * 
+	 *
 	 * if ( c.isChunkLoaded ) { world.addTileEntity( tile ); world.markBlockForUpdate( x,
 	 * y, z ); }
 	 * }
 	 * 
- * + * * @param tile to be moved tile * @param world world of tile * @param x x coord of tile diff --git a/src/main/java/appeng/api/movable/IMovableRegistry.java b/src/main/java/appeng/api/movable/IMovableRegistry.java index 6a0d4a9f..c9901450 100644 --- a/src/main/java/appeng/api/movable/IMovableRegistry.java +++ b/src/main/java/appeng/api/movable/IMovableRegistry.java @@ -5,29 +5,29 @@ import net.minecraft.tileentity.TileEntity; /** * Used to determine if a tile is marked as movable, a block will be considered movable, if... - * + * * 1. The Tile or its super classes have been white listed with whiteListTileEntity. - * + * * 2. The Tile has been register with the IMC ( which basically calls whiteListTileEntity. ) * * 3. The Tile implements IMovableTile 4. A IMovableHandler is register that returns canHandle = true for the Tile * Entity Class - * + * * IMC Example: FMLInterModComms.sendMessage( "appliedenergistics2", "movabletile", "appeng.common.AppEngTile" ); - * + * * The movement process is as follows, - * + * * 1. IMovableTile.prepareToMove() or TileEntity.invalidate() depending on your opt-in method. 2. The tile will be * removed from the world. 3. Its world, coordinates will be changed. *** this can be overridden with a IMovableHandler * *** 4. It will then be re-added to the world, or a new world. 5. TileEntity.validate() 6. IMovableTile.doneMoving ( * if you implemented IMovableTile ) - * + * * Please note, this is a 100% white list only feature, I will never opt in any non-vanilla, non-AE blocks. If you do * not want to support your tiles being moved, you don't have to do anything. - * + * * I appreciate anyone that takes the effort to get their tiles to work with this system to create a better use * experience. - * + * * If you need a build of deobf build of AE for testing, do not hesitate to ask. */ public interface IMovableRegistry @@ -35,20 +35,20 @@ public interface IMovableRegistry /** * Black list a block from movement, please only use this to prevent exploits. - * + * * You can also use the IMC, FMLInterModComms.sendMessage( "appliedenergistics2", "whitelist-spatial", * "appeng.common.AppEngTile" ); - * + * * @param blk block */ void blacklistBlock(Block blk); /** * White list your tile entity with the registry. - * + * * You can also use the IMC, FMLInterModComms.sendMessage( "appliedenergistics2", "blacklist-block-spatial", new * ItemStack(...) ); - * + * * If you tile is handled with IMovableHandler or IMovableTile you do not need to white list it. */ void whiteListTileEntity(Class c); @@ -61,23 +61,23 @@ public interface IMovableRegistry /** * tells the tile you are done moving it. - * + * * @param te moved tile entity */ void doneMoving(TileEntity te); /** * add a new handler movable handler. - * + * * @param handler moving handler */ void addHandler(IMovableHandler handler); /** * handlers are used to perform movement, this allows you to override AE's internal version. - * + * * only valid after askToMove(...) = true - * + * * @param te tile entity * @return moving handler of tile entity */ diff --git a/src/main/java/appeng/api/movable/IMovableTile.java b/src/main/java/appeng/api/movable/IMovableTile.java index 9139a41b..8eff1693 100644 --- a/src/main/java/appeng/api/movable/IMovableTile.java +++ b/src/main/java/appeng/api/movable/IMovableTile.java @@ -10,7 +10,7 @@ public interface IMovableTile /** * notification that your block will be moved, called instead of invalidate, * return false to prevent movement. - * + * * @return false to prevent movement */ boolean prepareToMove(); diff --git a/src/main/java/appeng/api/networking/IGrid.java b/src/main/java/appeng/api/networking/IGrid.java index 72c61154..73bba85e 100644 --- a/src/main/java/appeng/api/networking/IGrid.java +++ b/src/main/java/appeng/api/networking/IGrid.java @@ -5,7 +5,7 @@ import appeng.api.util.IReadOnlyCollection; /** * Gives you access to Grid based information. - * + * * Don't Implement. */ public interface IGrid @@ -13,7 +13,7 @@ public interface IGrid /** * Get Access to various grid modules - * + * * @param iface face * @return the IGridCache you requested. */ @@ -21,7 +21,7 @@ public interface IGrid /** * Post an event into the network event bus. - * + * * @param ev * - event to post * @return returns ev back to original poster @@ -30,7 +30,7 @@ public interface IGrid /** * Post an event into the network event bus, but direct it at a single node. - * + * * @param ev * event to post * @return returns ev back to original poster @@ -40,14 +40,14 @@ public interface IGrid /** * get a list of the diversity of classes, you can use this to better detect which machines your interested in, * rather then iterating the entire grid to test them. - * + * * @return IReadOnlyCollection of all available host types (Of Type IGridHost). */ public IReadOnlyCollection> getMachinesClasses(); /** * Get machines on the network. - * + * * @param gridHostClass class of the grid host * @return IMachineSet of all nodes belonging to hosts of specified class. */ diff --git a/src/main/java/appeng/api/networking/IGridBlock.java b/src/main/java/appeng/api/networking/IGridBlock.java index a8d7df17..c495fd88 100644 --- a/src/main/java/appeng/api/networking/IGridBlock.java +++ b/src/main/java/appeng/api/networking/IGridBlock.java @@ -10,7 +10,7 @@ import java.util.EnumSet; /** * An Implementation is required to create your node for IGridHost - * + * * Implement for use with IGridHost */ public interface IGridBlock @@ -18,16 +18,16 @@ public interface IGridBlock /** * how much power to drain per tick as part of idle network usage. - * + * * if the value of this changes, you must post a MENetworkPowerIdleChange - * + * * @return ae/t to use. */ double getIdlePowerUsage(); /** * Various flags that AE uses to modify basic behavior for various parts of the network. - * + * * @return Set of flags for this IGridBlock */ EnumSet getFlags(); @@ -36,7 +36,7 @@ public interface IGridBlock * generally speaking you will return true for this, the one exception is buses, or worm holes where the node * represents something that isn't a real connection in the world, but rather one represented internally to the * block. - * + * * @return if the world can connect to this node, and the node can connect to the world. */ boolean isWorldAccessible(); @@ -82,7 +82,7 @@ public interface IGridBlock /** * Determines what item stack is used to render this node in the GUI. - * + * * @return the render item stack to use to render this node, null is valid, and will not show this node. */ public ItemStack getMachineRepresentation(); diff --git a/src/main/java/appeng/api/networking/IGridCache.java b/src/main/java/appeng/api/networking/IGridCache.java index f920d5ae..bd81e55b 100644 --- a/src/main/java/appeng/api/networking/IGridCache.java +++ b/src/main/java/appeng/api/networking/IGridCache.java @@ -1,13 +1,13 @@ package appeng.api.networking; /** - * + * * Allows you to create a network wise service, AE2 uses these for providing * item, spatial, and tunnel services. - * + * * Any Class that implements this, should have a public default constructor that * takes a single argument of type IGrid. - * + * */ public interface IGridCache { @@ -15,17 +15,17 @@ public interface IGridCache /** * Called each tick for the network, allows you to have active network wide * behaviors. - * + * */ void onUpdateTick(); /** * inform your cache, that a machine was removed from the grid. - * + * * Important: Do not trust the grids state in this method, interact only * with the node you are passed, if you need to manage other grid * information, do it on the next updateTick. - * + * * @param gridNode removed from that grid * @param machine to be removed machine */ @@ -33,11 +33,11 @@ public interface IGridCache /** * informs you cache that a machine was added to the grid. - * + * * Important: Do not trust the grids state in this method, interact only * with the node you are passed, if you need to manage other grid * information, do it on the next updateTick. - * + * * @param gridNode added to grid node * @param machine to be added machine */ @@ -47,7 +47,7 @@ public interface IGridCache * Called when a grid splits into two grids, AE will call a split as it * Iteratively processes changes. The destination should receive half, and * the current cache should receive half. - * + * * @param destinationStorage storage which receives half of old grid */ void onSplit(IGridStorage destinationStorage); @@ -56,14 +56,14 @@ public interface IGridCache * Called when two grids merge into one, AE will call a join as it * Iteratively processes changes. Use this method to incorporate all the * data from the source into your cache. - * + * * @param sourceStorage old storage */ void onJoin(IGridStorage sourceStorage); /** * Called when saving changes, - * + * * @param destinationStorage storage */ void populateGridStorage(IGridStorage destinationStorage); diff --git a/src/main/java/appeng/api/networking/IGridCacheRegistry.java b/src/main/java/appeng/api/networking/IGridCacheRegistry.java index 8061f8cb..44df19e1 100644 --- a/src/main/java/appeng/api/networking/IGridCacheRegistry.java +++ b/src/main/java/appeng/api/networking/IGridCacheRegistry.java @@ -10,16 +10,16 @@ public interface IGridCacheRegistry /** * Register a new grid cache for use during operation, must be called during the loading phase. - * + * * @param iface grid cache class */ void registerGridCache(Class iface, Class implementation); /** * requests a new instance of a grid cache for use, used internally - * + * * @param grid grid - * + * * @return a new HashMap of IGridCaches from the registry, called from IGrid when constructing a new grid. */ HashMap, IGridCache> createCacheInstance(IGrid grid); diff --git a/src/main/java/appeng/api/networking/IGridConnection.java b/src/main/java/appeng/api/networking/IGridConnection.java index 9d5bb666..2ca07bb5 100644 --- a/src/main/java/appeng/api/networking/IGridConnection.java +++ b/src/main/java/appeng/api/networking/IGridConnection.java @@ -4,10 +4,10 @@ import net.minecraftforge.common.util.ForgeDirection; /** * Access to AE's internal grid connections. - * + * * Messing with connection is generally completely unnecessary, you should be able to just use IGridNode.updateState() * to have AE manage them for you. - * + * * Don't Implement. */ public interface IGridConnection @@ -15,7 +15,7 @@ public interface IGridConnection /** * lets you get the opposing node of the connection by passing your own node. - * + * * @param gridNode current grid node * @return the IGridNode which represents the opposite side of the connection. */ @@ -23,7 +23,7 @@ public interface IGridConnection /** * determine the direction of the connection based on your node. - * + * * @param gridNode current grid node * @return the direction of the connection, only valid for in world connections. */ diff --git a/src/main/java/appeng/api/networking/IGridConnectionVisitor.java b/src/main/java/appeng/api/networking/IGridConnectionVisitor.java index d79ce670..04273a84 100644 --- a/src/main/java/appeng/api/networking/IGridConnectionVisitor.java +++ b/src/main/java/appeng/api/networking/IGridConnectionVisitor.java @@ -5,7 +5,7 @@ public interface IGridConnectionVisitor extends IGridVisitor /** * Called for each connection on the network. - * + * * @param n * the connection. */ diff --git a/src/main/java/appeng/api/networking/IGridHost.java b/src/main/java/appeng/api/networking/IGridHost.java index 4af28c9a..3ac51d30 100644 --- a/src/main/java/appeng/api/networking/IGridHost.java +++ b/src/main/java/appeng/api/networking/IGridHost.java @@ -1,15 +1,15 @@ package appeng.api.networking; -import net.minecraft.tileentity.TileEntity; -import net.minecraftforge.common.util.ForgeDirection; import appeng.api.parts.IPart; import appeng.api.util.AECableType; +import net.minecraft.tileentity.TileEntity; +import net.minecraftforge.common.util.ForgeDirection; /** - * + * * Implement to create a networked {@link TileEntity} or {@link IPart} must * be implemented for a part, or tile entity to become part of a grid. - * + * */ public interface IGridHost { @@ -18,7 +18,7 @@ public interface IGridHost * get the grid node for a particular side of a block, you can return null, * by returning a valid node later and calling updateState, you can join the * Grid when your block is ready. - * + * * @param dir * feel free to ignore this, most blocks will use the same node * for every side. @@ -30,7 +30,7 @@ public interface IGridHost /** * Determines how cables render when they connect to this block. Priority is * Smart > Covered > Glass - * + * * @param dir direction */ public AECableType getCableConnectionType(ForgeDirection dir); diff --git a/src/main/java/appeng/api/networking/IGridMultiblock.java b/src/main/java/appeng/api/networking/IGridMultiblock.java index 83f580e7..dc3413d0 100644 --- a/src/main/java/appeng/api/networking/IGridMultiblock.java +++ b/src/main/java/appeng/api/networking/IGridMultiblock.java @@ -12,7 +12,7 @@ public interface IGridMultiblock extends IGridBlock /** * Used to acquire a list of all nodes that are part of the multiblock. - * + * * @return an iterator that will iterate all the nodes for the multiblock. ( read-only iterator expected. ) */ Iterator getMultiblockNodes(); diff --git a/src/main/java/appeng/api/networking/IGridNode.java b/src/main/java/appeng/api/networking/IGridNode.java index 21bd2c20..72a3aae9 100644 --- a/src/main/java/appeng/api/networking/IGridNode.java +++ b/src/main/java/appeng/api/networking/IGridNode.java @@ -9,13 +9,13 @@ import net.minecraftforge.common.util.ForgeDirection; import java.util.EnumSet; /** - * + * * Gives you a view into your Nodes connections and information. - * + * * updateState, getGrid, destroy are required to implement a proper IGridHost. - * + * * Don't Implement; Acquire from {@link IAppEngApi}.createGridNode - * + * */ public interface IGridNode { @@ -23,33 +23,33 @@ public interface IGridNode /** * lets you walk the grid stating at the current node using a IGridVisitor, generally not needed, please use only if * required. - * + * * @param visitor visitor */ void beginVisit(IGridVisitor visitor); /** * inform the node that your IGridBlock has changed its internal state, and force the node to update. - * + * * ALWAYS make sure that your tile entity is in the world, and has its node properly saved to be returned from the * host before updating state, - * + * * If your entity is not in the world, or if you IGridHost returns a different node for the same side you will * likely crash the game. - * + * */ void updateState(); /** * get the machine represented by the node. - * + * * @return grid host */ IGridHost getMachine(); /** * get the grid for the node, this can change at a moments notice. - * + * * @return grid */ IGrid getGrid(); @@ -66,14 +66,14 @@ public interface IGridNode World getWorld(); /** - * + * * @return a set of the connected sides, UNKNOWN represents an invisible connection */ EnumSet getConnectedSides(); /** * lets you iterate a nodes connections - * + * * @return grid connections */ IReadOnlyCollection getConnections(); @@ -86,7 +86,7 @@ public interface IGridNode /** * Reflects the networks status, returns true only if the network is powered, and the network is not booting, this * also takes into account channels. - * + * * @return true if is Network node active, and participating. */ boolean isActive(); @@ -94,9 +94,9 @@ public interface IGridNode /** * this should be called for each node you create, if you have a nodeData compound to load from, you can store all * your nods on a single compound using name. - * + * * Important: You must call this before updateState. - * + * * @param name nbt name * @param nodeData to be loaded data */ @@ -105,7 +105,7 @@ public interface IGridNode /** * this should be called for each node you maintain, you can save all your nodes to the same tag with different * names, if you fail to complete the load / save procedure, network state may be lost between game load/saves. - * + * * @param name nbt name * @param nodeData to be saved data */ @@ -119,7 +119,7 @@ public interface IGridNode /** * see if this node has a certain flag - * + * * @param flag flags * @return true if has flag */ @@ -128,7 +128,7 @@ public interface IGridNode /** * tell the node who was responsible for placing it, failure to do this may result in in-compatibility with the * security system. Called instead of loadFromNBT when initially placed, once set never required again, the value is saved with the Node NBT. - * + * * @param playerID new player id */ void setPlayerID(int playerID); diff --git a/src/main/java/appeng/api/networking/IGridVisitor.java b/src/main/java/appeng/api/networking/IGridVisitor.java index 2593160f..e6e4a267 100644 --- a/src/main/java/appeng/api/networking/IGridVisitor.java +++ b/src/main/java/appeng/api/networking/IGridVisitor.java @@ -8,12 +8,12 @@ public interface IGridVisitor /** * Called for each node on the network. - * + * * By returning false your informing the host to stop visiting nodes beyond the current node. - * + * * @param n * the current node. - * + * * @return true to continue visiting nodes beyond this node. */ public boolean visitNode(IGridNode n); diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingCallback.java b/src/main/java/appeng/api/networking/crafting/ICraftingCallback.java index e61ae2cc..177ee0d6 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingCallback.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingCallback.java @@ -5,7 +5,7 @@ public interface ICraftingCallback /** * this call back is synchronized with the world you passed. - * + * * @param job * - final job */ diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingGrid.java b/src/main/java/appeng/api/networking/crafting/ICraftingGrid.java index 8ac1dc83..592070d7 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingGrid.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingGrid.java @@ -24,14 +24,14 @@ public interface ICraftingGrid extends IGridCache /** * Begin calculating a crafting job. - * + * * @param world crafting world * @param grid network * @param actionSrc source * @param craftWhat result * @param callback callback * -- optional - * + * * @return a future which will at an undetermined point in the future get you the {@link ICraftingJob} do not wait * on this, your be waiting forever. */ @@ -39,22 +39,22 @@ public interface ICraftingGrid extends IGridCache /** * Submit the job to the Crafting system for processing. - * + * * @param job * - the crafting job from beginCraftingJob * @param requestingMachine * - a machine if its being requested via automation, may be null. * @param target * - can be null - * + * * @param prioritizePower * - if cpu is null, this determine if the system should prioritize power, or if it should find the lower * end cpus, automatic processes generally should pick lower end cpus. - * + * * @param src * - the action source to use when starting the job, this will be used for extracting items, should * usually be the same as the one provided to beginCraftingJob. - * + * * @return null ( if failed ) or an {@link ICraftingLink} other wise, if you send requestingMachine you need to * properly keep track of this and handle the nbt saving and loading of the object as well as the * {@link ICraftingRequester} methods. if you send null, this object should be discarded after verifying the @@ -75,7 +75,7 @@ public interface ICraftingGrid extends IGridCache /** * is this item being crafted? - * + * * @param aeStackInSlot item being crafted * @return true if it is being crafting */ diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingJob.java b/src/main/java/appeng/api/networking/crafting/ICraftingJob.java index 8eeb29eb..26613fb0 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingJob.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingJob.java @@ -20,7 +20,7 @@ public interface ICraftingJob /** * Populates the plan list with stack size, and requestable values that represent the stored, and crafting job * contents respectively. - * + * * @param plan plan */ void populatePlan(IItemList plan); diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingLink.java b/src/main/java/appeng/api/networking/crafting/ICraftingLink.java index be7f4f38..11b2082c 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingLink.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingLink.java @@ -27,7 +27,7 @@ public interface ICraftingLink /** * write the link to an NBT Tag - * + * * @param tag to be written data */ void writeToNBT(NBTTagCompound tag); diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingMedium.java b/src/main/java/appeng/api/networking/crafting/ICraftingMedium.java index b84e7937..41d8e11b 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingMedium.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingMedium.java @@ -11,7 +11,7 @@ public interface ICraftingMedium /** * instruct a medium to create the item represented by the pattern+details, the items on the table, and where if * possible the output should be directed. - * + * * @param patternDetails details * @param table crafting table * @return if the pattern was successfully pushed. diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingPatternDetails.java b/src/main/java/appeng/api/networking/crafting/ICraftingPatternDetails.java index 0fb4eb34..9e007ff1 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingPatternDetails.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingPatternDetails.java @@ -1,14 +1,14 @@ package appeng.api.networking.crafting; +import appeng.api.implementations.ICraftingPatternItem; +import appeng.api.storage.data.IAEItemStack; import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; import net.minecraft.world.World; -import appeng.api.implementations.ICraftingPatternItem; -import appeng.api.storage.data.IAEItemStack; /** * do not implement provided by {@link ICraftingPatternItem} - * + * * caching this instance will increase performance of validation and checks. */ public interface ICraftingPatternDetails @@ -23,7 +23,7 @@ public interface ICraftingPatternDetails * @param slotIndex specific slot index * @param itemStack item in slot * @param world crafting world - * + * * @return if an item can be used in the specific slot for this pattern. */ boolean isValidItemForSlot(int slotIndex, ItemStack itemStack, World world); @@ -60,7 +60,7 @@ public interface ICraftingPatternDetails /** * Allow using this instance of the pattern details to preform the crafting action with performance enhancements. - * + * * @param craftingInv inventory * @param world crafting world * @return the crafted ( work bench ) item. @@ -69,7 +69,7 @@ public interface ICraftingPatternDetails /** * Set the priority the of this pattern. - * + * * @param priority priority of pattern */ void setPriority(int priority); diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingProvider.java b/src/main/java/appeng/api/networking/crafting/ICraftingProvider.java index edd05177..8a8dc312 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingProvider.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingProvider.java @@ -11,7 +11,7 @@ public interface ICraftingProvider extends ICraftingMedium /** * called when the network is looking for possible crafting jobs. - * + * * @param craftingTracker crafting helper */ void provideCrafting(ICraftingProviderHelper craftingTracker); diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingRequester.java b/src/main/java/appeng/api/networking/crafting/ICraftingRequester.java index 0f29bdcf..9acb7345 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingRequester.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingRequester.java @@ -3,7 +3,6 @@ package appeng.api.networking.crafting; import appeng.api.config.Actionable; import appeng.api.networking.security.IActionHost; import appeng.api.storage.data.IAEItemStack; - import com.google.common.collect.ImmutableSet; public interface ICraftingRequester extends IActionHost @@ -12,7 +11,7 @@ public interface ICraftingRequester extends IActionHost /** * called when the host is added to the grid, and should return all crafting links it poses so they can be connected * with the cpu that hosts the job. - * + * * @return set of jobs, or an empty list. */ ImmutableSet getRequestedJobs(); @@ -20,7 +19,7 @@ public interface ICraftingRequester extends IActionHost /** * items are injected into the requester as they are completed, any items that cannot be taken, or are unwanted can * be returned. - * + * * @param items item * @param mode action mode * @return unwanted item @@ -29,7 +28,7 @@ public interface ICraftingRequester extends IActionHost /** * called when the job changes from in progress, to either complete, or canceled. - * + * * after this call the crafting link is "dead" and should be discarded. */ void jobStateChange(ICraftingLink link); diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingWatcher.java b/src/main/java/appeng/api/networking/crafting/ICraftingWatcher.java index 64cffd3e..9edacb18 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingWatcher.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingWatcher.java @@ -1,9 +1,9 @@ package appeng.api.networking.crafting; -import java.util.Collection; - import appeng.api.storage.data.IAEStack; +import java.util.Collection; + public interface ICraftingWatcher extends Collection { diff --git a/src/main/java/appeng/api/networking/crafting/ICraftingWatcherHost.java b/src/main/java/appeng/api/networking/crafting/ICraftingWatcherHost.java index b5ae4384..77cfa4dd 100644 --- a/src/main/java/appeng/api/networking/crafting/ICraftingWatcherHost.java +++ b/src/main/java/appeng/api/networking/crafting/ICraftingWatcherHost.java @@ -8,14 +8,14 @@ public interface ICraftingWatcherHost /** * provides the ICraftingWatcher for this host, for the current network, is called when the hot changes networks. * You do not need to clear your old watcher, its already been removed by the time this gets called. - * + * * @param newWatcher crafting watcher for this host */ void updateWatcher(ICraftingWatcher newWatcher); /** * Called when a crafting status changes. - * + * * @param craftingGrid current crafting grid * @param what change */ diff --git a/src/main/java/appeng/api/networking/energy/IAEPowerStorage.java b/src/main/java/appeng/api/networking/energy/IAEPowerStorage.java index a97c5e60..31ac4540 100644 --- a/src/main/java/appeng/api/networking/energy/IAEPowerStorage.java +++ b/src/main/java/appeng/api/networking/energy/IAEPowerStorage.java @@ -11,10 +11,10 @@ public interface IAEPowerStorage extends IEnergySource /** * Inject amt, power into the device, it will store what it can, and return the amount unable to be stored. - * + * * @param amt to be injected amount * @param mode action mode - * + * * @return amount of power which was unable to be stored */ public double injectAEPower(double amt, Actionable mode); @@ -32,14 +32,14 @@ public interface IAEPowerStorage extends IEnergySource /** * Checked on network reset to see if your block can be used as a public power storage ( use getPowerFlow to control * the behavior ) - * + * * @return true if it can be used as a public power storage */ public boolean isAEPublicPowerStorage(); /** * Control the power flow by telling what the network can do, either add? or subtract? or both! - * + * * @return access restriction what the network can do */ public AccessRestriction getPowerFlow(); diff --git a/src/main/java/appeng/api/networking/energy/IEnergyGrid.java b/src/main/java/appeng/api/networking/energy/IEnergyGrid.java index 38f9bbd1..0bc7c02d 100644 --- a/src/main/java/appeng/api/networking/energy/IEnergyGrid.java +++ b/src/main/java/appeng/api/networking/energy/IEnergyGrid.java @@ -30,25 +30,25 @@ public interface IEnergyGrid extends IGridCache, IEnergySource, IEnergyGridProvi * AE maintains an idle draw of power separate from active power draw, it condenses this into a single operation * that determines the networks "powered state" if the network is considered off-line, your machines should not * function. - * + * * {@link MENetworkPowerStatusChange} events are posted when this value changes if you need to be notified of the * change, most machines can simply test the value when they operate. - * + * * @return if the network is powered or not. */ public boolean isNetworkPowered(); /** * AE will accept any power, and store it, to maintain sanity please don't send more then 10,000 at a time. - * + * * IMPORTANT: Network power knows no bounds, for less spamy power flow, networks can store more then their allotted * storage, however, it should be kept to a minimum, to help with this, this method returns the networks current * OVERFLOW, this is not energy you can store some where else, its already stored in the network, you can extract it * if you want, however it it owned by the network, this is different then IAEEnergyStore - * + * * Another important note, is that if a network that had overflow is deleted, its power is gone, this is one of the * reasons why keeping overflow to a minimum is important. - * + * * @param amt * power to inject into the network * @param mode @@ -59,14 +59,14 @@ public interface IEnergyGrid extends IGridCache, IEnergySource, IEnergyGridProvi /** * this is should be considered an estimate, and not relied upon for real calculations. - * + * * @return estimated available power. */ public double getStoredPower(); /** * this is should be considered an estimate, and not relied upon for real calculations. - * + * * @return estimated available power. */ double getMaxStoredPower(); @@ -74,7 +74,7 @@ public interface IEnergyGrid extends IGridCache, IEnergySource, IEnergyGridProvi /** * Calculation will be capped at maxRequired, this improves performance by limiting the number of nodes needed to * calculate the demand. - * + * * @return Amount of power required to charge the grid, in AE. */ public double getEnergyDemand(double maxRequired); diff --git a/src/main/java/appeng/api/networking/energy/IEnergyGridProvider.java b/src/main/java/appeng/api/networking/energy/IEnergyGridProvider.java index a7412630..51fa3226 100644 --- a/src/main/java/appeng/api/networking/energy/IEnergyGridProvider.java +++ b/src/main/java/appeng/api/networking/energy/IEnergyGridProvider.java @@ -1,9 +1,9 @@ package appeng.api.networking.energy; -import java.util.Set; - import appeng.api.config.Actionable; +import java.util.Set; + /** * internal use only. */ diff --git a/src/main/java/appeng/api/networking/energy/IEnergySource.java b/src/main/java/appeng/api/networking/energy/IEnergySource.java index 52a8c272..f83c73b8 100644 --- a/src/main/java/appeng/api/networking/energy/IEnergySource.java +++ b/src/main/java/appeng/api/networking/energy/IEnergySource.java @@ -8,7 +8,7 @@ public interface IEnergySource /** * Extract power from the network. - * + * * @param amt extracted power * @param mode should the action be simulated or performed? * @return returns extracted power. diff --git a/src/main/java/appeng/api/networking/energy/IEnergyWatcherHost.java b/src/main/java/appeng/api/networking/energy/IEnergyWatcherHost.java index 775380ca..70a9f52b 100644 --- a/src/main/java/appeng/api/networking/energy/IEnergyWatcherHost.java +++ b/src/main/java/appeng/api/networking/energy/IEnergyWatcherHost.java @@ -6,14 +6,14 @@ public interface IEnergyWatcherHost /** * provides the IEnergyWatcher for this host, for the current network, is called when the hot changes networks. You * do not need to clear your old watcher, its already been removed by the time this gets called. - * + * * @param newWatcher new watcher */ void updateWatcher(IEnergyWatcher newWatcher); /** * Called when a threshold is crossed. - * + * * @param energyGrid grid */ void onThresholdPass(IEnergyGrid energyGrid); diff --git a/src/main/java/appeng/api/networking/events/MENetworkBootingStatusChange.java b/src/main/java/appeng/api/networking/events/MENetworkBootingStatusChange.java index 284c64e4..6ab1f591 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkBootingStatusChange.java +++ b/src/main/java/appeng/api/networking/events/MENetworkBootingStatusChange.java @@ -5,7 +5,7 @@ import appeng.api.networking.IGridNode; /** * Posted by the network when the booting status of the network goes up * or down, the change is reflected via {@link IGridNode}.isActive() - * + * * Note: Most machines just need to check {@link IGridNode}.isActive() */ public class MENetworkBootingStatusChange extends MENetworkEvent diff --git a/src/main/java/appeng/api/networking/events/MENetworkCellArrayUpdate.java b/src/main/java/appeng/api/networking/events/MENetworkCellArrayUpdate.java index aec90e78..000da9c2 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkCellArrayUpdate.java +++ b/src/main/java/appeng/api/networking/events/MENetworkCellArrayUpdate.java @@ -2,10 +2,10 @@ package appeng.api.networking.events; /** * Posted by storage devices to inform AE to refresh its storage structure. - * + * * This is done in cases such as a storage cell being removed or added to a * drive. - * + * * you do not need to send this event when your node is added / removed from the * grid. */ diff --git a/src/main/java/appeng/api/networking/events/MENetworkChannelsChanged.java b/src/main/java/appeng/api/networking/events/MENetworkChannelsChanged.java index ebfed6cb..4fe3c9d2 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkChannelsChanged.java +++ b/src/main/java/appeng/api/networking/events/MENetworkChannelsChanged.java @@ -4,7 +4,7 @@ import appeng.api.networking.IGridHost; /** * Posted to the {@link IGridHost} when the channels on the node connections are altered. - * + * * Never posted IGridCaches. */ public class MENetworkChannelsChanged extends MENetworkEvent diff --git a/src/main/java/appeng/api/networking/events/MENetworkEvent.java b/src/main/java/appeng/api/networking/events/MENetworkEvent.java index 34a2731d..9d4b051c 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkEvent.java +++ b/src/main/java/appeng/api/networking/events/MENetworkEvent.java @@ -4,7 +4,7 @@ import appeng.api.networking.IGrid; /** * Part of AE's Event Bus. - * + * * Posted via {@link IGrid}.postEvent or {@link IGrid}.postEventTo */ public class MENetworkEvent @@ -23,7 +23,7 @@ public class MENetworkEvent /** * called by AE after each object is called to cancel any future calls. - * + * * @return true to cancel future calls */ public boolean isCanceled() @@ -33,7 +33,7 @@ public class MENetworkEvent /** * the number of objects that were visited by the event. - * + * * @return number of visitors */ public int getVisitedObjects() @@ -43,7 +43,7 @@ public class MENetworkEvent /** * Called by AE after iterating the event subscribers. - * + * * @param v current number of visitors */ public void setVisitedObjects(int v) diff --git a/src/main/java/appeng/api/networking/events/MENetworkEventSubscribe.java b/src/main/java/appeng/api/networking/events/MENetworkEventSubscribe.java index b3b8fb9a..5bc7303c 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkEventSubscribe.java +++ b/src/main/java/appeng/api/networking/events/MENetworkEventSubscribe.java @@ -1,11 +1,11 @@ package appeng.api.networking.events; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; - import appeng.api.networking.IGridCache; import appeng.api.networking.IGridHost; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + /** * Usable on any {@link IGridHost}, or {@link IGridCache} */ diff --git a/src/main/java/appeng/api/networking/events/MENetworkPowerIdleChange.java b/src/main/java/appeng/api/networking/events/MENetworkPowerIdleChange.java index 803c5a7e..398b1573 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkPowerIdleChange.java +++ b/src/main/java/appeng/api/networking/events/MENetworkPowerIdleChange.java @@ -6,7 +6,7 @@ import appeng.api.networking.IGridNode; * Implementers of a IGridBlock must post this event when your getIdlePowerUsage * starts returning a new value, if you do not post this event the network will * not change the idle draw. - * + * * you do not need to send this event when your node is added / removed from the grid. */ public class MENetworkPowerIdleChange extends MENetworkEvent diff --git a/src/main/java/appeng/api/networking/events/MENetworkPowerStatusChange.java b/src/main/java/appeng/api/networking/events/MENetworkPowerStatusChange.java index c89db973..05046613 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkPowerStatusChange.java +++ b/src/main/java/appeng/api/networking/events/MENetworkPowerStatusChange.java @@ -7,7 +7,7 @@ import appeng.api.networking.energy.IEnergyGrid; * Posted by the network when the power status of the network goes up or down, * the change is reflected via the {@link IEnergyGrid}.isNetworkPowered() or via * {@link IGridNode}.isActive() - * + * * Note: Most machines just need to check {@link IGridNode}.isActive() */ public class MENetworkPowerStatusChange extends MENetworkEvent diff --git a/src/main/java/appeng/api/networking/events/MENetworkPowerStorage.java b/src/main/java/appeng/api/networking/events/MENetworkPowerStorage.java index 34643450..f7a7c1b3 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkPowerStorage.java +++ b/src/main/java/appeng/api/networking/events/MENetworkPowerStorage.java @@ -5,10 +5,10 @@ import appeng.api.networking.energy.IAEPowerStorage; /** * informs the network, that a {@link IAEPowerStorage} block that had either run, * out of power, or was full, is no longer in that state. - * + * * failure to post this event when your {@link IAEPowerStorage} changes state will * result in your block not charging, or not-discharging. - * + * * you do not need to send this event when your node is added / removed from the grid. */ public class MENetworkPowerStorage extends MENetworkEvent @@ -19,12 +19,12 @@ public class MENetworkPowerStorage extends MENetworkEvent /** * informs the network this tile is ready to receive power again. */ - REQUEST_POWER, - + REQUEST_POWER, + /** * informs the network this tile is ready to provide power again. */ - PROVIDE_POWER + PROVIDE_POWER } public final IAEPowerStorage storage; diff --git a/src/main/java/appeng/api/networking/events/MENetworkStorageEvent.java b/src/main/java/appeng/api/networking/events/MENetworkStorageEvent.java index 36a93624..e4ffea9b 100644 --- a/src/main/java/appeng/api/networking/events/MENetworkStorageEvent.java +++ b/src/main/java/appeng/api/networking/events/MENetworkStorageEvent.java @@ -6,9 +6,9 @@ import appeng.api.storage.StorageChannel; /** * posted by the network when the networks Storage Changes, you can use the currentItems list to check levels, and * update status. - * + * * this is the least useful method of getting info about changes in the network. - * + * * Do not modify the list or its contents in anyway. */ public class MENetworkStorageEvent extends MENetworkEvent diff --git a/src/main/java/appeng/api/networking/security/IActionHost.java b/src/main/java/appeng/api/networking/security/IActionHost.java index e6aa7a19..c7c121f1 100644 --- a/src/main/java/appeng/api/networking/security/IActionHost.java +++ b/src/main/java/appeng/api/networking/security/IActionHost.java @@ -10,7 +10,7 @@ public interface IActionHost extends IGridHost * Used to for calculating security rules, you must supply a node from your * IGridHost for the security test, this should be the primary node for the * machine, unless the action is preformed by a non primary node. - * + * * @return the the gridnode that actions from this IGridHost are preformed * by. */ diff --git a/src/main/java/appeng/api/networking/security/ISecurityGrid.java b/src/main/java/appeng/api/networking/security/ISecurityGrid.java index aed72a7c..871f6a17 100644 --- a/src/main/java/appeng/api/networking/security/ISecurityGrid.java +++ b/src/main/java/appeng/api/networking/security/ISecurityGrid.java @@ -1,8 +1,8 @@ package appeng.api.networking.security; -import net.minecraft.entity.player.EntityPlayer; import appeng.api.config.SecurityPermissions; import appeng.api.networking.IGridCache; +import net.minecraft.entity.player.EntityPlayer; public interface ISecurityGrid extends IGridCache { @@ -14,20 +14,20 @@ public interface ISecurityGrid extends IGridCache /** * Check if a player has permissions. - * + * * @param player to be checked player * @param perm checked permissions - * + * * @return true if the player has permissions. */ boolean hasPermission(EntityPlayer player, SecurityPermissions perm); /** * Check if a player has permissions. - * + * * @param playerID id of player * @param perm checked permissions - * + * * @return true if the player has permissions. */ boolean hasPermission(int playerID, SecurityPermissions perm); diff --git a/src/main/java/appeng/api/networking/security/ISecurityProvider.java b/src/main/java/appeng/api/networking/security/ISecurityProvider.java index be9ad4a8..72aae707 100644 --- a/src/main/java/appeng/api/networking/security/ISecurityProvider.java +++ b/src/main/java/appeng/api/networking/security/ISecurityProvider.java @@ -13,14 +13,14 @@ public interface ISecurityProvider /** * used to represent the security key for the network, should be based on a unique timestamp. - * + * * @return unique key. */ long getSecurityKey(); /** * Push permission data into security cache. - * + * * @param playerPerms player permissions */ void readPermissions(HashMap> playerPerms); diff --git a/src/main/java/appeng/api/networking/security/ISecurityRegistry.java b/src/main/java/appeng/api/networking/security/ISecurityRegistry.java index b1abf80c..ebc41776 100644 --- a/src/main/java/appeng/api/networking/security/ISecurityRegistry.java +++ b/src/main/java/appeng/api/networking/security/ISecurityRegistry.java @@ -12,7 +12,7 @@ public interface ISecurityRegistry /** * Submit Permissions into the register. - * + * * @param PlayerID player id * @param permissions permissions of player */ diff --git a/src/main/java/appeng/api/networking/storage/IStackWatcher.java b/src/main/java/appeng/api/networking/storage/IStackWatcher.java index f27ecf77..1e1ce561 100644 --- a/src/main/java/appeng/api/networking/storage/IStackWatcher.java +++ b/src/main/java/appeng/api/networking/storage/IStackWatcher.java @@ -1,9 +1,9 @@ package appeng.api.networking.storage; -import java.util.Collection; - import appeng.api.storage.data.IAEStack; +import java.util.Collection; + public interface IStackWatcher extends Collection { diff --git a/src/main/java/appeng/api/networking/storage/IStackWatcherHost.java b/src/main/java/appeng/api/networking/storage/IStackWatcherHost.java index 62b2541f..d513618e 100644 --- a/src/main/java/appeng/api/networking/storage/IStackWatcherHost.java +++ b/src/main/java/appeng/api/networking/storage/IStackWatcherHost.java @@ -11,14 +11,14 @@ public interface IStackWatcherHost /** * provides the IStackWatcher for this host, for the current network, is called when the hot changes networks. You * do not need to clear your old watcher, its already been removed by the time this gets called. - * + * * @param newWatcher stack watcher */ void updateWatcher(IStackWatcher newWatcher); /** * Called when a watched item changes amounts. - * + * * @param o changed item list * @param fullStack old stack * @param diffStack new stack diff --git a/src/main/java/appeng/api/networking/storage/IStorageGrid.java b/src/main/java/appeng/api/networking/storage/IStorageGrid.java index 774e96dc..7bc2b2ec 100644 --- a/src/main/java/appeng/api/networking/storage/IStorageGrid.java +++ b/src/main/java/appeng/api/networking/storage/IStorageGrid.java @@ -19,20 +19,20 @@ public interface IStorageGrid extends IGridCache, IStorageMonitorable * Used to inform the network of alterations to the storage system that fall outside of the standard Network * operations, Examples, ME Chest inputs from the world, or a Storage Bus detecting modifications made to the chest * by an outside force. - * + * * Expects the input to have either a negative or a positive stack size to correspond to the injection, or * extraction operation. - * + * * @param input injected items */ void postAlterationOfStoredItems(StorageChannel chan, Iterable input, BaseActionSource src); /** * Used to add a cell provider to the storage system - * + * * THIS IT NOT FOR USE {@link IGridHost} THAT PROVIDE {@link ICellContainer} - those are automatically handled by * the storage system. - * + * * @param cc to be added cell provider */ void registerCellProvider(ICellProvider cc); diff --git a/src/main/java/appeng/api/networking/ticking/IGridTickable.java b/src/main/java/appeng/api/networking/ticking/IGridTickable.java index 66d3c898..0c48e0fb 100644 --- a/src/main/java/appeng/api/networking/ticking/IGridTickable.java +++ b/src/main/java/appeng/api/networking/ticking/IGridTickable.java @@ -10,27 +10,27 @@ public interface IGridTickable /** * Important note regarding IGridTickables with more then one one node, - * + * * If your IGridHost hosts multiple nodes, it may be on multiple grids, or * its node may be present on the same grid multiple times, this is as * designed, however if you choose to use the grid to tick these Hosts you * must be aware that they they should probably pick a single node to tick * for, and not tick for each node. - * + * */ /** * You can return null, if you wish to tick using MC's ticking mechanism, or * you can return a valid TickingRequest to tell AE a guide for which type * of responsiveness your device wants. - * + * * this will be called for your tile any time your tile changes grids, this * can happen at any time, so if your using the sleep feature you may wish * to preserve your sleep, in the result of this method. or you can simply * reset it. - * + * * @return null or a valid new TickingRequest - * + * */ TickingRequest getTickingRequest(IGridNode node); @@ -38,18 +38,18 @@ public interface IGridTickable * AE lets you adjust your tick rate based on the results of your tick, if * your block as accomplished work you may wish to increase the ticking * speed, if your block is idle you may wish to slow it down. - * + * * Its up to you. - * + * * Note: this is never called if you return null from getTickingRequest. - * + * * @param TicksSinceLastCall * the number of world ticks that were skipped since your last * tick, you can use this to adjust speed of processing or adjust * your tick rate. - * + * * @return tick rate adjustment. - * + * */ TickRateModulation tickingRequest(IGridNode node, int TicksSinceLastCall); diff --git a/src/main/java/appeng/api/networking/ticking/ITickManager.java b/src/main/java/appeng/api/networking/ticking/ITickManager.java index d5cbbf0b..44648229 100644 --- a/src/main/java/appeng/api/networking/ticking/ITickManager.java +++ b/src/main/java/appeng/api/networking/ticking/ITickManager.java @@ -4,39 +4,39 @@ import appeng.api.networking.IGridCache; import appeng.api.networking.IGridNode; /** - * + * * The network tick manager. - * + * */ public interface ITickManager extends IGridCache { /** * immediately sets the node to tick, only valid if your node is marked as "Alertable" in its TickingRequest - * + * * Sleeping Devices Still Alertable, when your tile is alerted its new status is determined by the result of its * tick. - * + * * @param node gridnode */ boolean alertDevice(IGridNode node); /** - * + * * disables ticking for your device. - * + * * @param node gridnode - * + * * @return if the call was successful. */ boolean sleepDevice(IGridNode node); /** - * + * * enables ticking for your device, undoes a sleepDevice call. - * + * * @param node gridnode - * + * * @return if the call was successful. */ boolean wakeDevice(IGridNode node); diff --git a/src/main/java/appeng/api/networking/ticking/TickingRequest.java b/src/main/java/appeng/api/networking/ticking/TickingRequest.java index 02ac54e6..13c3847e 100644 --- a/src/main/java/appeng/api/networking/ticking/TickingRequest.java +++ b/src/main/java/appeng/api/networking/ticking/TickingRequest.java @@ -1,46 +1,46 @@ package appeng.api.networking.ticking; /** - * + * * Describes how your tiles ticking is executed. - * + * */ public class TickingRequest { /** * the minimum number of ticks that must pass between ticks. - * + * * Valid Values are : 1+ - * + * * Suggested is 5-20 - * + * */ public final int minTickRate; /** * the maximum number of ticks that can pass between ticks, if this value is * exceeded the tile must tick. - * + * * Valid Values are 1+ - * + * * Suggested is 20-40 - * + * */ public final int maxTickRate; /** - * + * * Determines the current expected state of your node, if your node expects * to be sleeping, then return true. - * + * */ public final boolean isSleeping; /** - * + * * True only if you call {@link ITickManager}.alertDevice( IGridNode ); - * + * */ public final boolean canBeAlerted; diff --git a/src/main/java/appeng/api/parts/IAlphaPassItem.java b/src/main/java/appeng/api/parts/IAlphaPassItem.java index b2dba861..32563a5e 100644 --- a/src/main/java/appeng/api/parts/IAlphaPassItem.java +++ b/src/main/java/appeng/api/parts/IAlphaPassItem.java @@ -7,7 +7,7 @@ public interface IAlphaPassItem /** * Extend, and return true to enable a second pass for your parts in the bus rendering pipe line. - * + * * @param is item * @return true to enable a second pass for your parts in the bus rendering pipe line. */ diff --git a/src/main/java/appeng/api/parts/IBoxProvider.java b/src/main/java/appeng/api/parts/IBoxProvider.java index 653089a9..94e12bb8 100644 --- a/src/main/java/appeng/api/parts/IBoxProvider.java +++ b/src/main/java/appeng/api/parts/IBoxProvider.java @@ -5,7 +5,7 @@ public interface IBoxProvider /** * add your collision information to the the list. - * + * * @param boxes collision boxes */ void getBoxes(IPartCollisionHelper boxes); diff --git a/src/main/java/appeng/api/parts/IFacadeContainer.java b/src/main/java/appeng/api/parts/IFacadeContainer.java index 397fbecc..818362dc 100644 --- a/src/main/java/appeng/api/parts/IFacadeContainer.java +++ b/src/main/java/appeng/api/parts/IFacadeContainer.java @@ -8,7 +8,7 @@ import java.io.IOException; /** * Used Internally. - * + * * not intended for implementation. */ public interface IFacadeContainer @@ -16,7 +16,7 @@ public interface IFacadeContainer /** * Attempts to add the {@link IFacadePart} to the given side. - * + * * @return true if the facade as successfully added. */ boolean addFacade(IFacadePart a); @@ -38,14 +38,14 @@ public interface IFacadeContainer /** * write nbt data - * + * * @param data to be written data */ void writeToNBT(NBTTagCompound data); /** * read from stream - * + * * @param data to be read data * @return true if it was readable * @throws IOException @@ -54,14 +54,14 @@ public interface IFacadeContainer /** * read from NBT - * + * * @param data to be read data */ void readFromNBT(NBTTagCompound data); /** * write to stream - * + * * @param data to be written data * @throws IOException */ diff --git a/src/main/java/appeng/api/parts/IFacadePart.java b/src/main/java/appeng/api/parts/IFacadePart.java index cbe647ae..40dcd372 100644 --- a/src/main/java/appeng/api/parts/IFacadePart.java +++ b/src/main/java/appeng/api/parts/IFacadePart.java @@ -1,17 +1,17 @@ package appeng.api.parts; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.entity.Entity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.AxisAlignedBB; import net.minecraftforge.common.util.ForgeDirection; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; /** * Used Internally. - * + * * not intended for implementation. */ public interface IFacadePart @@ -24,7 +24,7 @@ public interface IFacadePart /** * used to collide, and pick the part - * + * * @param ch collision helper * @param e colliding entity */ @@ -32,7 +32,7 @@ public interface IFacadePart /** * render the part. - * + * * @param x x pos of part * @param y y pos of part * @param z z pos of part @@ -47,7 +47,7 @@ public interface IFacadePart /** * render the part in inventory. - * + * * @param instance render helper * @param renderer renderer */ diff --git a/src/main/java/appeng/api/parts/IPartCollisionHelper.java b/src/main/java/appeng/api/parts/IPartCollisionHelper.java index c7fcb9a6..825732a4 100644 --- a/src/main/java/appeng/api/parts/IPartCollisionHelper.java +++ b/src/main/java/appeng/api/parts/IPartCollisionHelper.java @@ -7,9 +7,9 @@ public interface IPartCollisionHelper /** * add a collision box, expects 0.0 - 16.0 block coords. - * + * * No complaints about the size, I like using pixels :P - * + * * @param minX minimal x collision * @param minY minimal y collision * @param minZ minimal z collision diff --git a/src/main/java/appeng/api/parts/IPartHelper.java b/src/main/java/appeng/api/parts/IPartHelper.java index 7cf451ed..2d8f4b11 100644 --- a/src/main/java/appeng/api/parts/IPartHelper.java +++ b/src/main/java/appeng/api/parts/IPartHelper.java @@ -10,26 +10,26 @@ public interface IPartHelper /** * Register a new layer with the part layer system, this allows you to write * an in between between tile entities and parts. - * + * * AE By Default includes, - * + * * 1. ISidedInventory ( and by extension IInventory. ) - * + * * 2. IFluidHandler Forge Fluids - * + * * 3. IPowerEmitter BC Power output. - * + * * 4. IPowerReceptor BC Power input. - * + * * 5. IEnergySink IC2 Power input. - * + * * 6. IEnergySource IC2 Power output. - * + * * 7. IPipeConnection BC Pipe Connections - * + * * As long as a valid layer is registered for a interface you can simply * implement that interface on a part get implement it. - * + * * @return true on success, false on failure, usually a error will be logged * as well. */ @@ -42,7 +42,7 @@ public interface IPartHelper /** * use in use item, to try and place a IBusItem - * + * * @param is ItemStack of an item which implements {@link IPartItem} * @param x x pos of part * @param y y pos of part diff --git a/src/main/java/appeng/api/parts/IPartHost.java b/src/main/java/appeng/api/parts/IPartHost.java index b18712dc..bed4e37b 100644 --- a/src/main/java/appeng/api/parts/IPartHost.java +++ b/src/main/java/appeng/api/parts/IPartHost.java @@ -12,7 +12,7 @@ import java.util.Set; /** * Implemented on AE's TileEntity or AE's FMP Part. - * + * * Do Not Implement */ public interface IPartHost @@ -26,7 +26,7 @@ public interface IPartHost /** * Test if you can add a part to the specified side of the Part Host, {@link ForgeDirection}.UNKNOWN is used to * represent the cable in the middle. - * + * * @param part to be added part * @param side part placed onto side * @return returns false if the part cannot be added. @@ -35,7 +35,7 @@ public interface IPartHost /** * try to add a new part to the specified side, returns false if it failed to be added. - * + * * @param is new part * @param side onto side * @param owner with owning player @@ -46,7 +46,7 @@ public interface IPartHost /** * Get part by side ( center is {@link ForgeDirection}.UNKNOWN ) - * + * * @param side side of part * @return the part located on the specified side, or null if there is no part. */ @@ -55,9 +55,9 @@ public interface IPartHost /** * removes the part on the side, this doesn't drop it or anything, if you don't do something with it, its just * "gone" and its never coming back; think about it. - * + * * if you want to drop the part you must request it prior to removing it. - * + * * @param side side of part * @param suppressUpdate * - used if you need to replace a part's instance, without really removing it first. @@ -92,14 +92,14 @@ public interface IPartHost /** * Used to test for FMP microblock blocking internally. - * + * * @return returns if microblocks are blocking this cable path. */ boolean isBlocked(ForgeDirection side); /** * finds the part located at the position ( pos must be relative, not global ) - * + * * @param pos part position * @return a new SelectedPart, this is never null. */ @@ -117,7 +117,7 @@ public interface IPartHost /** * get the redstone state of host on this side, this value is cached internally. - * + * * @param side side of part * @return true of the part host is receiving redstone from an external source. */ @@ -145,7 +145,7 @@ public interface IPartHost /** * true if the tile is in the world, other wise false. - * + * * @return true if tile is in world */ boolean isInWorld(); diff --git a/src/main/java/appeng/api/parts/IPartItem.java b/src/main/java/appeng/api/parts/IPartItem.java index ca7a4b4f..795e6a2f 100644 --- a/src/main/java/appeng/api/parts/IPartItem.java +++ b/src/main/java/appeng/api/parts/IPartItem.java @@ -5,9 +5,9 @@ import net.minecraft.item.ItemStack; //@formatter:off /** * This is a pretty basic requirement, once you implement the interface, and createPartFromItemStack - * + * * you must register your bus with the Bus renderer, using AEApi.instance().partHelper().setItemBusRenderer( this ); - * + * * then simply add these two methods, which tell MC to use the Block Textures, and call AE's Bus Placement Code. * *
@@ -33,7 +33,7 @@ public interface IPartItem
 
 	/**
 	 * create a new part instance, from the item stack.
-	 * 
+	 *
 	 * @param is item
 	 * @return part from item
 	 */
diff --git a/src/main/java/appeng/api/parts/IPartRenderHelper.java b/src/main/java/appeng/api/parts/IPartRenderHelper.java
index b00a7ca6..33d2766f 100644
--- a/src/main/java/appeng/api/parts/IPartRenderHelper.java
+++ b/src/main/java/appeng/api/parts/IPartRenderHelper.java
@@ -14,9 +14,9 @@ public interface IPartRenderHelper
 
 	/**
 	 * sets the Render Helpers Block Bounds. 0.0 - 16.0 block coords.
-	 * 
+	 *
 	 * No complaints about the size, I like using pixels :P
-	 * 
+	 *
 	 * @param minX minimal x bound
 	 * @param minY minimal y bound
 	 * @param minZ minimal z bound
@@ -28,9 +28,9 @@ public interface IPartRenderHelper
 
 	/**
 	 * static renderer
-	 * 
+	 *
 	 * render a single face.
-	 * 
+	 *
 	 * @param x x coord of part
 	 * @param y y coord of part
 	 * @param z z coord of part
@@ -43,9 +43,9 @@ public interface IPartRenderHelper
 
 	/**
 	 * static renderer
-	 * 
+	 *
 	 * render a box with a cut out box in the center.
-	 * 
+	 *
 	 * @param x x pos of part
 	 * @param y y pos of part
 	 * @param z z pos of part
@@ -59,9 +59,9 @@ public interface IPartRenderHelper
 
 	/**
 	 * static renderer
-	 * 
+	 *
 	 * render a block of specified bounds.
-	 * 
+	 *
 	 * @param x x pos of block
 	 * @param y y pos of block
 	 * @param z z pos of block
@@ -72,7 +72,7 @@ public interface IPartRenderHelper
 
 	/**
 	 * render a single face in inventory renderer.
-	 * 
+	 *
 	 * @param IIcon icon of part
 	 * @param direction face of part
 	 * @param renderer renderer
@@ -82,7 +82,7 @@ public interface IPartRenderHelper
 
 	/**
 	 * render a box in inventory renderer.
-	 * 
+	 *
 	 * @param renderer renderer
 	 */
 	@SideOnly(Side.CLIENT)
@@ -90,9 +90,9 @@ public interface IPartRenderHelper
 
 	/**
 	 * inventory, and static renderer.
-	 * 
+	 *
 	 * set unique icons for each side of the block.
-	 * 
+	 *
 	 * @param down down face
 	 * @param up up face
 	 * @param north north face
@@ -104,16 +104,16 @@ public interface IPartRenderHelper
 
 	/**
 	 * inventory, and static renderer.
-	 * 
+	 *
 	 * set all sides to a single IIcon.
-	 * 
+	 *
 	 * @param ico to be set icon
 	 */
 	void setTexture(IIcon ico);
 
 	/**
 	 * configure the color multiplier for the inventory renderer.
-	 * 
+	 *
 	 * @param whiteVariant color multiplier
 	 */
 	void setInvColor(int whiteVariant);
@@ -141,7 +141,7 @@ public interface IPartRenderHelper
 	/**
 	 * Pre-Calculates default lighting for the part, call this before using the render helper to render anything else to
 	 * get simplified, but faster lighting for more then one block.
-	 * 
+	 *
 	 * Only worth it if you render more then 1 block.
 	 */
 	ISimplifiedBundle useSimplifiedRendering(int x, int y, int z, IBoxProvider p, ISimplifiedBundle sim);
@@ -153,7 +153,7 @@ public interface IPartRenderHelper
 
 	/**
 	 * render a block using the current renderer state.
-	 * 
+	 *
 	 * @param x x pos of part
 	 * @param y y pos of part
 	 * @param z z pos of part
@@ -163,14 +163,14 @@ public interface IPartRenderHelper
 
 	/**
 	 * allow you to enable your part to render during the alpha pass or the standard pass.
-	 * 
+	 *
 	 * @param pass render pass
 	 */
 	void renderForPass(int pass);
 
 	/**
 	 * Set which faces to render, remember to set back to ALL when you are done.
-	 * 
+	 *
 	 * @param complementOf sides to render
 	 */
 	void setFacesToRender(EnumSet complementOf);
diff --git a/src/main/java/appeng/api/parts/LayerBase.java b/src/main/java/appeng/api/parts/LayerBase.java
index e976654b..6f16d27d 100644
--- a/src/main/java/appeng/api/parts/LayerBase.java
+++ b/src/main/java/appeng/api/parts/LayerBase.java
@@ -14,9 +14,9 @@ public abstract class LayerBase extends TileEntity // implements IPartHost
 
 	/**
 	 * Grants access for the layer to the parts of the host.
-	 * 
+	 *
 	 * This Method looks silly, that is because its not used at runtime, a real implementation will be used instead.
-	 * 
+	 *
 	 * @param side side of part
 	 * @return the part for the requested side.
 	 */
diff --git a/src/main/java/appeng/api/recipes/ICraftHandler.java b/src/main/java/appeng/api/recipes/ICraftHandler.java
index df574c7f..ce78b816 100644
--- a/src/main/java/appeng/api/recipes/ICraftHandler.java
+++ b/src/main/java/appeng/api/recipes/ICraftHandler.java
@@ -11,7 +11,7 @@ public interface ICraftHandler
 
 	/**
 	 * Called when your recipe handler receives a newly parsed list of inputs/outputs.
-	 * 
+	 *
 	 * @param input parsed inputs
 	 * @param output parsed outputs
 	 * @throws RecipeError
@@ -20,7 +20,7 @@ public interface ICraftHandler
 
 	/**
 	 * called when all recipes are parsed, and your required to register your recipe.
-	 * 
+	 *
 	 * @throws RegistrationError
 	 * @throws MissingIngredientError
 	 */
diff --git a/src/main/java/appeng/api/recipes/IIngredient.java b/src/main/java/appeng/api/recipes/IIngredient.java
index 9a8cbb91..5bd662eb 100644
--- a/src/main/java/appeng/api/recipes/IIngredient.java
+++ b/src/main/java/appeng/api/recipes/IIngredient.java
@@ -1,17 +1,17 @@
 package appeng.api.recipes;
 
-import net.minecraft.item.ItemStack;
 import appeng.api.exceptions.MissingIngredientError;
 import appeng.api.exceptions.RegistrationError;
+import net.minecraft.item.ItemStack;
 
 public interface IIngredient {
 
 	/**
 	 * Acquire a single input stack for the current recipe, if more then one ItemStack is possible a
 	 * RegistrationError exception will be thrown, ignore these and let the system handle the error.
-	 * 
+	 *
 	 * @return a single ItemStack for the recipe handler.
-	 * 
+	 *
 	 * @throws RegistrationError
 	 * @throws MissingIngredientError
 	 */
@@ -20,7 +20,7 @@ public interface IIngredient {
 	/**
 	 * Acquire a list of all the input stacks for the current recipe, this is for handlers that support
 	 * multiple inputs per slot.
-	 * 
+	 *
 	 * @return an array of ItemStacks for the recipe handler.
 	 * @throws RegistrationError
 	 * @throws MissingIngredientError
@@ -29,35 +29,35 @@ public interface IIngredient {
 
 	/**
 	 * If you wish to support air, you must test before getting the ItemStack, or ItemStackSet
-	 * 
+	 *
 	 * @return true if this slot contains no ItemStack, this is passed as "_"
 	 */
 	public boolean isAir();
-	
+
 	/**
-	 * @return The Name Space of the item. Prefer getItemStack or getItemStackSet 
+	 * @return The Name Space of the item. Prefer getItemStack or getItemStackSet
 	 */
 	public String getNameSpace();
 
 	/**
-	 * @return The Name of the item. Prefer getItemStack or getItemStackSet 
+	 * @return The Name of the item. Prefer getItemStack or getItemStackSet
 	 */
 	public String getItemName();
 
 	/**
-	 * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet 
+	 * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet
 	 */
 	public int getDamageValue();
 
 	/**
-	 * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet 
+	 * @return The Damage Value of the item. Prefer getItemStack or getItemStackSet
 	 */
 	public int getQty();
 
 	/**
 	 * Bakes the lists in for faster runtime lookups.
-	 * @throws MissingIngredientError 
-	 * @throws RegistrationError 
+	 * @throws MissingIngredientError
+	 * @throws RegistrationError
 	 */
 	void bake() throws RegistrationError, MissingIngredientError;
 
diff --git a/src/main/java/appeng/api/recipes/IRecipeHandler.java b/src/main/java/appeng/api/recipes/IRecipeHandler.java
index 153d1623..60236524 100644
--- a/src/main/java/appeng/api/recipes/IRecipeHandler.java
+++ b/src/main/java/appeng/api/recipes/IRecipeHandler.java
@@ -8,7 +8,7 @@ public interface IRecipeHandler
 
 	/**
 	 * Call when you want to read recipes in from a file based on a loader
-	 * 
+	 *
 	 * @param loader recipe loader
 	 * @param path path of file
 	 */
diff --git a/src/main/java/appeng/api/recipes/ResolverResultSet.java b/src/main/java/appeng/api/recipes/ResolverResultSet.java
index d9e34aa4..70df248e 100644
--- a/src/main/java/appeng/api/recipes/ResolverResultSet.java
+++ b/src/main/java/appeng/api/recipes/ResolverResultSet.java
@@ -1,10 +1,10 @@
 package appeng.api.recipes;
 
+import net.minecraft.item.ItemStack;
+
 import java.util.Arrays;
 import java.util.List;
 
-import net.minecraft.item.ItemStack;
-
 public class ResolverResultSet
 {
 
diff --git a/src/main/java/appeng/api/storage/ICellContainer.java b/src/main/java/appeng/api/storage/ICellContainer.java
index 8b1f7c21..ecad201a 100644
--- a/src/main/java/appeng/api/storage/ICellContainer.java
+++ b/src/main/java/appeng/api/storage/ICellContainer.java
@@ -10,7 +10,7 @@ public interface ICellContainer extends IActionHost, ICellProvider, ISaveProvide
 
 	/**
 	 * tell the Cell container that this slot should blink, the slot number is relative to the
-	 * 
+	 *
 	 * @param slot slot index
 	 */
 	void blinkCell(int slot);
diff --git a/src/main/java/appeng/api/storage/ICellHandler.java b/src/main/java/appeng/api/storage/ICellHandler.java
index 1ddc839a..47445402 100644
--- a/src/main/java/appeng/api/storage/ICellHandler.java
+++ b/src/main/java/appeng/api/storage/ICellHandler.java
@@ -1,11 +1,11 @@
 package appeng.api.storage;
 
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.item.ItemStack;
-import net.minecraft.util.IIcon;
 import appeng.api.implementations.tiles.IChestOrDrive;
 import cpw.mods.fml.relauncher.Side;
 import cpw.mods.fml.relauncher.SideOnly;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.IIcon;
 
 /**
  * Registration record for {@link ICellRegistry}
@@ -16,7 +16,7 @@ public interface ICellHandler
 	/**
 	 * return true if the provided item is handled by your cell handler. ( AE May choose to skip this method, and just
 	 * request a handler )
-	 * 
+	 *
 	 * @param is to be checked item
 	 * @return return true, if getCellHandler will not return null.
 	 */
@@ -24,7 +24,7 @@ public interface ICellHandler
 
 	/**
 	 * If you cannot handle the provided item, return null
-	 * 
+	 *
 	 * @param is
 	 *            a storage cell item.
 	 * @param host
@@ -32,7 +32,7 @@ public interface ICellHandler
 	 *            note, this value can be null.
 	 * @param channel
 	 *            the storage channel requested.
-	 * 
+	 *
 	 * @return a new IMEHandler for the provided item
 	 */
 	IMEInventoryHandler getCellInventory(ItemStack is, ISaveProvider host, StorageChannel channel);
@@ -62,11 +62,11 @@ public interface ICellHandler
 	IIcon getTopTexture_Dark();
 
 	/**
-	 * 
+	 *
 	 * Called when the storage cell is planed in an ME Chest and the user tries to open the terminal side, if your item
 	 * is not available via ME Chests simply tell the user they can't use it, or something, other wise you should open
 	 * your gui and display the cell to the user.
-	 * 
+	 *
 	 * @param player player opening chest gui
 	 * @param chest to be opened chest
 	 * @param cellHandler cell handler
@@ -78,16 +78,16 @@ public interface ICellHandler
 
 	/**
 	 * 0 - cell is missing.
-	 * 
+	 *
 	 * 1 - green, ( usually means available room for types or items. )
-	 * 
+	 *
 	 * 2 - orange, ( usually means available room for items, but not types. )
-	 * 
+	 *
 	 * 3 - red, ( usually means the cell is 100% full )
-	 * 
+	 *
 	 * @param is the cell item. ( use the handler for any details you can )
 	 * @param handler the handler for the cell is provides for reference, you can cast this to your handler.
-	 * 
+	 *
 	 * @return get the status of the cell based on its contents.
 	 */
 	int getStatusForCell(ItemStack is, IMEInventory handler);
diff --git a/src/main/java/appeng/api/storage/ICellInventory.java b/src/main/java/appeng/api/storage/ICellInventory.java
index c48567d4..7a8fe7f6 100644
--- a/src/main/java/appeng/api/storage/ICellInventory.java
+++ b/src/main/java/appeng/api/storage/ICellInventory.java
@@ -1,9 +1,9 @@
 package appeng.api.storage;
 
-import net.minecraft.inventory.IInventory;
-import net.minecraft.item.ItemStack;
 import appeng.api.config.FuzzyMode;
 import appeng.api.storage.data.IAEItemStack;
+import net.minecraft.inventory.IInventory;
+import net.minecraft.item.ItemStack;
 
 public interface ICellInventory extends IMEInventory
 {
diff --git a/src/main/java/appeng/api/storage/ICellProvider.java b/src/main/java/appeng/api/storage/ICellProvider.java
index 643439d6..ef854269 100644
--- a/src/main/java/appeng/api/storage/ICellProvider.java
+++ b/src/main/java/appeng/api/storage/ICellProvider.java
@@ -11,17 +11,17 @@ public interface ICellProvider
 
 	/**
 	 * Inventory of the tile for use with ME, should always return an valid list, never NULL.
-	 * 
+	 *
 	 * You must return the correct Handler for the correct channel, if your handler returns a IAEItemStack handler, for
 	 * a Fluid Channel stuffs going to explode, same with the reverse.
-	 * 
+	 *
 	 * @return a valid list of handlers, NEVER NULL
 	 */
 	List getCellArray(StorageChannel channel);
 
 	/**
 	 * the storage's priority.
-	 * 
+	 *
 	 * Positive and negative are supported
 	 */
 	int getPriority();
diff --git a/src/main/java/appeng/api/storage/ICellRegistry.java b/src/main/java/appeng/api/storage/ICellRegistry.java
index 4e983102..3f9e8f8f 100644
--- a/src/main/java/appeng/api/storage/ICellRegistry.java
+++ b/src/main/java/appeng/api/storage/ICellRegistry.java
@@ -1,12 +1,12 @@
 package appeng.api.storage;
 
-import net.minecraft.item.ItemStack;
 import appeng.api.IAppEngApi;
+import net.minecraft.item.ItemStack;
 
 /**
  * Storage Cell Registry, used for specially implemented cells, if you just want to make a item act like a cell, or new
  * cell with different bytes, then you should probably consider IStorageCell instead its considerably simpler.
- * 
+ *
  * Do not Implement, obtained via {@link IAppEngApi}.getCellRegistry()
  */
 public interface ICellRegistry
@@ -14,14 +14,14 @@ public interface ICellRegistry
 
 	/**
 	 * Register a new handler.
-	 * 
+	 *
 	 * @param handler cell handler
 	 */
 	void addCellHandler(ICellHandler handler);
 
 	/**
 	 * return true, if you can get a InventoryHandler for the item passed.
-	 * 
+	 *
 	 * @param is to be checked item
 	 * @return true if the provided item, can be handled by a handler in AE, ( AE May choose to skip this and just get
 	 *         the handler instead. )
@@ -30,7 +30,7 @@ public interface ICellRegistry
 
 	/**
 	 * get the handler, for the requested type.
-	 * 
+	 *
 	 * @param is to be checked item
 	 * @return the handler registered for this item type.
 	 */
@@ -38,11 +38,11 @@ public interface ICellRegistry
 
 	/**
 	 * returns an IMEInventoryHandler for the provided item.
-	 * 
+	 *
 	 * @param is item with inventory handler
 	 * @param host can be null, or the hosting tile / part.
 	 * @param chan the storage channel to request the handler for.
-	 * 
+	 *
 	 * @return new IMEInventoryHandler, or null if there isn't one.
 	 */
 	IMEInventoryHandler getCellInventory(ItemStack is, ISaveProvider host, StorageChannel chan);
diff --git a/src/main/java/appeng/api/storage/ICellWorkbenchItem.java b/src/main/java/appeng/api/storage/ICellWorkbenchItem.java
index e4fab828..e0415fb3 100644
--- a/src/main/java/appeng/api/storage/ICellWorkbenchItem.java
+++ b/src/main/java/appeng/api/storage/ICellWorkbenchItem.java
@@ -1,15 +1,15 @@
 package appeng.api.storage;
 
+import appeng.api.config.FuzzyMode;
 import net.minecraft.inventory.IInventory;
 import net.minecraft.item.ItemStack;
-import appeng.api.config.FuzzyMode;
 
 public interface ICellWorkbenchItem
 {
 
 	/**
 	 * if this return false, the item will not be treated as a cell, and cannot be inserted into the work bench.
-	 * 
+	 *
 	 * @param is item
 	 * @return true if the item should be editable in the cell workbench.
 	 */
@@ -18,16 +18,16 @@ public interface ICellWorkbenchItem
 	/**
 	 * used to edit the upgrade slots on your cell, should have a capacity of 0-24, you are also responsible for
 	 * implementing the valid checks, and any storage/usage of them.
-	 * 
+	 *
 	 * onInventoryChange will be called when saving is needed.
 	 */
 	IInventory getUpgradesInventory(ItemStack is);
 
 	/**
 	 * Used to extract, or mirror the contents of the work bench onto the cell.
-	 * 
+	 *
 	 * - This should have exactly 63 slots, any more, or less might cause issues.
-	 * 
+	 *
 	 * onInventoryChange will be called when saving is needed.
 	 */
 	IInventory getConfigInventory(ItemStack is);
diff --git a/src/main/java/appeng/api/storage/IExternalStorageHandler.java b/src/main/java/appeng/api/storage/IExternalStorageHandler.java
index a17cdd6f..415ba590 100644
--- a/src/main/java/appeng/api/storage/IExternalStorageHandler.java
+++ b/src/main/java/appeng/api/storage/IExternalStorageHandler.java
@@ -1,8 +1,8 @@
 package appeng.api.storage;
 
+import appeng.api.networking.security.BaseActionSource;
 import net.minecraft.tileentity.TileEntity;
 import net.minecraftforge.common.util.ForgeDirection;
-import appeng.api.networking.security.BaseActionSource;
 
 /**
  * A Registration Record for {@link IExternalStorageRegistry}
@@ -13,7 +13,7 @@ public interface IExternalStorageHandler
 	/**
 	 * if this can handle the provided inventory, return true. ( Generally skipped by AE, and it just calls getInventory
 	 * )
-	 * 
+	 *
 	 * @param te to be handled tile entity
 	 * @param mySrc source
 	 * @return true, if it can get a handler via getInventory
@@ -22,10 +22,10 @@ public interface IExternalStorageHandler
 
 	/**
 	 * if this can handle the given inventory, return the a IMEInventory implementing class for it, if not return null
-	 * 
+	 *
 	 * please note that if your inventory changes and requires polling, you must use an {@link IMEMonitor} instead of an
 	 * {@link IMEInventory} failure to do so will result in invalid item counts and reporting of the inventory.
-	 * 
+	 *
 	 * @param te to be handled tile entity
 	 * @param d direction
 	 * @param channel channel
diff --git a/src/main/java/appeng/api/storage/IExternalStorageRegistry.java b/src/main/java/appeng/api/storage/IExternalStorageRegistry.java
index 7edbc8b9..6318e429 100644
--- a/src/main/java/appeng/api/storage/IExternalStorageRegistry.java
+++ b/src/main/java/appeng/api/storage/IExternalStorageRegistry.java
@@ -1,13 +1,13 @@
 package appeng.api.storage;
 
-import net.minecraft.tileentity.TileEntity;
-import net.minecraftforge.common.util.ForgeDirection;
 import appeng.api.IAppEngApi;
 import appeng.api.networking.security.BaseActionSource;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraftforge.common.util.ForgeDirection;
 
 /**
  * A Registry of External Storage handlers.
- * 
+ *
  * Do not implement obtain via {@link IAppEngApi}.registries().getExternalStorageRegistry()
  */
 public interface IExternalStorageRegistry
@@ -15,7 +15,7 @@ public interface IExternalStorageRegistry
 
 	/**
 	 * A registry for StorageBus interactions
-	 * 
+	 *
 	 * @param esh storage handler
 	 */
 	void addExternalStorageInterface(IExternalStorageHandler esh);
diff --git a/src/main/java/appeng/api/storage/IMEInventory.java b/src/main/java/appeng/api/storage/IMEInventory.java
index d51be9fa..22d5161d 100644
--- a/src/main/java/appeng/api/storage/IMEInventory.java
+++ b/src/main/java/appeng/api/storage/IMEInventory.java
@@ -7,11 +7,11 @@ import appeng.api.storage.data.IItemList;
 
 /**
  * AE's Equivalent to IInventory, used to reading contents, and manipulating contents of ME Inventories.
- * 
+ *
  * Implementations should COMPLETELY ignore stack size limits from an external view point, Meaning that you can inject
  * Integer.MAX_VALUE items and it should work as defined, or be able to extract Integer.MAX_VALUE and have it work as
  * defined, Translations to MC's max stack size are external to the AE API.
- * 
+ *
  * If you want to request a stack of an item, you should should determine that prior to requesting the stack from the
  * inventory.
  */
@@ -20,7 +20,7 @@ public interface IMEInventory
 
 	/**
 	 * Store new items, or simulate the addition of new items into the ME Inventory.
-	 * 
+	 *
 	 * @param input item to add.
 	 * @param type action type
 	 * @param src action source
@@ -30,7 +30,7 @@ public interface IMEInventory
 
 	/**
 	 * Extract the specified item from the ME Inventory
-	 * 
+	 *
 	 * @param request
 	 *            item to request ( with stack size. )
 	 * @param mode
@@ -41,7 +41,7 @@ public interface IMEInventory
 
 	/**
 	 * request a full report of all available items, storage.
-	 * 
+	 *
 	 * @param out
 	 *            the IItemList the results will be written too
 	 * @return returns same list that was passed in, is passed out
diff --git a/src/main/java/appeng/api/storage/IMEInventoryHandler.java b/src/main/java/appeng/api/storage/IMEInventoryHandler.java
index a93d8b86..299ff4be 100644
--- a/src/main/java/appeng/api/storage/IMEInventoryHandler.java
+++ b/src/main/java/appeng/api/storage/IMEInventoryHandler.java
@@ -6,7 +6,7 @@ import appeng.api.storage.data.IAEStack;
 /**
  * Thin logic layer that can be swapped with different IMEInventory implementations, used to handle features related to
  * storage, that are Separate from the storage medium itself.
- * 
+ *
  * @param 
  */
 public interface IMEInventoryHandler extends IMEInventory
@@ -14,7 +14,7 @@ public interface IMEInventoryHandler extends IMEInve
 
 	/**
 	 * determine if items can be injected/extracted.
-	 * 
+	 *
 	 * @return the access
 	 */
 	public AccessRestriction getAccess();
@@ -22,7 +22,7 @@ public interface IMEInventoryHandler extends IMEInve
 	/**
 	 * determine if a particular item is prioritized for this inventory handler, if it is, then it will be added to this
 	 * inventory prior to any non-prioritized inventories.
-	 * 
+	 *
 	 * @param input
 	 *            - item that might be added
 	 * @return if its prioritized
@@ -31,7 +31,7 @@ public interface IMEInventoryHandler extends IMEInve
 
 	/**
 	 * determine if an item can be accepted and stored.
-	 * 
+	 *
 	 * @param input
 	 *            - item that might be added
 	 * @return if the item can be added
@@ -40,14 +40,14 @@ public interface IMEInventoryHandler extends IMEInve
 
 	/**
 	 * determine what the priority of the inventory is.
-	 * 
+	 *
 	 * @return the priority, zero is default, positive and negative are supported.
 	 */
 	public int getPriority();
 
 	/**
 	 * pass back value for blinkCell.
-	 * 
+	 *
 	 * @return the slot index for the cell that this represents in the storage unit, the method on the
 	 *         {@link ICellContainer} will be called with this value, only trust the return value of this method if you
 	 *         are the implementer of the {@link IMEInventoryHandler}.
@@ -58,7 +58,7 @@ public interface IMEInventoryHandler extends IMEInve
 	 * AE Uses a two pass placement system, the first pass checks contents and tries to find a place where the item
 	 * belongs, however in some cases you can save processor time, or require that the second, or first pass is simply
 	 * ignored, this allows you to do that.
-	 * 
+	 *
 	 * @param i
 	 *            - pass number ( 1 or 2 )
 	 * @return true, if this inventory is valid for this pass.
diff --git a/src/main/java/appeng/api/storage/IMEMonitor.java b/src/main/java/appeng/api/storage/IMEMonitor.java
index 439bb00e..0bd14bcf 100644
--- a/src/main/java/appeng/api/storage/IMEMonitor.java
+++ b/src/main/java/appeng/api/storage/IMEMonitor.java
@@ -16,7 +16,7 @@ public interface IMEMonitor extends IMEInventoryHandler,
 
 	/**
 	 * Get access to the full item list of the network, preferred over {@link IMEInventory} .getAvailableItems(...)
-	 * 
+	 *
 	 * @return full storage list.
 	 */
 	IItemList getStorageList();
diff --git a/src/main/java/appeng/api/storage/IMEMonitorHandlerReceiver.java b/src/main/java/appeng/api/storage/IMEMonitorHandlerReceiver.java
index f0f50d97..b438738f 100644
--- a/src/main/java/appeng/api/storage/IMEMonitorHandlerReceiver.java
+++ b/src/main/java/appeng/api/storage/IMEMonitorHandlerReceiver.java
@@ -9,7 +9,7 @@ public interface IMEMonitorHandlerReceiver
 
 	/**
 	 * return true if this object should remain as a listener.
-	 * 
+	 *
 	 * @param verificationToken to be checked object
 	 * @return true if object should remain as a listener
 	 */
@@ -17,7 +17,7 @@ public interface IMEMonitorHandlerReceiver
 
 	/**
 	 * called when changes are made to the Monitor, but only if listener is still valid.
-	 * 
+	 *
 	 * @param change done change
 	 */
 	void postChange(IBaseMonitor monitor, Iterable change, BaseActionSource actionSource);
diff --git a/src/main/java/appeng/api/storage/IStorageHelper.java b/src/main/java/appeng/api/storage/IStorageHelper.java
index 3f3ceb7e..e9ad4529 100644
--- a/src/main/java/appeng/api/storage/IStorageHelper.java
+++ b/src/main/java/appeng/api/storage/IStorageHelper.java
@@ -19,7 +19,7 @@ public interface IStorageHelper
 
 	/**
 	 * load a crafting link from nbt data.
-	 * 
+	 *
 	 * @param data to be loaded data
 	 * @return crafting link
 	 */
@@ -28,7 +28,7 @@ public interface IStorageHelper
 	/**
 	 * @param is
 	 *            An ItemStack
-	 * 
+	 *
 	 * @return a new instance of {@link IAEItemStack} from a MC {@link ItemStack}
 	 */
 	IAEItemStack createItemStack(ItemStack is);
@@ -36,7 +36,7 @@ public interface IStorageHelper
 	/**
 	 * @param is
 	 *            A FluidStack
-	 * 
+	 *
 	 * @return a new instance of {@link IAEFluidStack} from a Forge {@link FluidStack}
 	 */
 	IAEFluidStack createFluidStack(FluidStack is);
@@ -53,7 +53,7 @@ public interface IStorageHelper
 
 	/**
 	 * Read a AE Item Stack from a byte stream, returns a AE item stack or null.
-	 * 
+	 *
 	 * @param input to be loaded data
 	 * @return item based of data
 	 * @throws IOException if file could not be read
@@ -62,7 +62,7 @@ public interface IStorageHelper
 
 	/**
 	 * Read a AE Fluid Stack from a byte stream, returns a AE fluid stack or null.
-	 * 
+	 *
 	 * @param input to be loaded data
 	 * @return fluid based on data
 	 * @throws IOException if file could not be written
@@ -71,7 +71,7 @@ public interface IStorageHelper
 
 	/**
 	 * use energy from energy, to remove request items from cell, at the request of src.
-	 * 
+	 *
 	 * @param energy to be drained energy source
 	 * @param cell cell of requested items
 	 * @param request requested items
@@ -82,7 +82,7 @@ public interface IStorageHelper
 
 	/**
 	 * use energy from energy, to inject input items into cell, at the request of src
-	 * 
+	 *
 	 * @param energy to be added energy source
 	 * @param cell injected cell
 	 * @param input to be injected items
diff --git a/src/main/java/appeng/api/storage/IStorageMonitorable.java b/src/main/java/appeng/api/storage/IStorageMonitorable.java
index ea7293a8..a20a1662 100644
--- a/src/main/java/appeng/api/storage/IStorageMonitorable.java
+++ b/src/main/java/appeng/api/storage/IStorageMonitorable.java
@@ -6,7 +6,7 @@ import appeng.api.storage.data.IAEItemStack;
 
 /**
  * represents the internal behavior of a {@link ITileStorageMonitorable} use it to get this value for a tile, or part.
- * 
+ *
  * never check a tile for this, always go though ITileStorageMonitorable if you wish to use this interface.
  */
 public interface IStorageMonitorable
diff --git a/src/main/java/appeng/api/storage/MEMonitorHandler.java b/src/main/java/appeng/api/storage/MEMonitorHandler.java
index 0af84ecc..1b73dcbd 100644
--- a/src/main/java/appeng/api/storage/MEMonitorHandler.java
+++ b/src/main/java/appeng/api/storage/MEMonitorHandler.java
@@ -14,7 +14,7 @@ import java.util.Map.Entry;
 /**
  * Common implementation of a simple class that monitors injection/extraction of a inventory to send events to a list of
  * listeners.
- * 
+ *
  * @param 
  */
 public class MEMonitorHandler implements IMEMonitor
@@ -40,7 +40,7 @@ public class MEMonitorHandler implements IMEMonitor<
 	{
 		notifyListenersOfChange( changes, src );
 	}
-	
+
 	protected void notifyListenersOfChange(Iterable diff, BaseActionSource src)
 	{
 		hasChanged = true;// need to update the cache.
diff --git a/src/main/java/appeng/api/storage/StorageChannel.java b/src/main/java/appeng/api/storage/StorageChannel.java
index 1ada1509..9e71b621 100644
--- a/src/main/java/appeng/api/storage/StorageChannel.java
+++ b/src/main/java/appeng/api/storage/StorageChannel.java
@@ -17,7 +17,7 @@ public enum StorageChannel
 	 * AE2's Fluid Based Storage ( mainly added to better support ExtraCells )
 	 */
 	FLUIDS( IAEFluidStack.class );
-	
+
 	public final Class type;
 
 	private StorageChannel( Class t ) {
diff --git a/src/main/java/appeng/api/storage/data/IAEFluidStack.java b/src/main/java/appeng/api/storage/data/IAEFluidStack.java
index 9a1ad283..af818b98 100644
--- a/src/main/java/appeng/api/storage/data/IAEFluidStack.java
+++ b/src/main/java/appeng/api/storage/data/IAEFluidStack.java
@@ -6,28 +6,28 @@ import net.minecraftforge.fluids.FluidStack;
 /**
  * An alternate version of FluidStack for AE to keep tabs on things easier, and
  * to support larger storage. stackSizes of getFluidStack will be capped.
- * 
+ *
  * You may hold on to these if you want, just make sure you let go of them when
  * your not using them.
  *
  * Don't Implement.
- * 
+ *
  * Construct with Util.createFluidStack( FluidStack )
- * 
+ *
  */
 public interface IAEFluidStack extends IAEStack
 {
 
 	/**
 	 * creates a standard Forge FluidStack for the fluid.
-	 * 
+	 *
 	 * @return new FluidStack
 	 */
 	FluidStack getFluidStack();
 
 	/**
 	 * create a AE Fluid clone.
-	 * 
+	 *
 	 * @return the copy.
 	 */
 	@Override
@@ -35,7 +35,7 @@ public interface IAEFluidStack extends IAEStack
 
 	/**
 	 * Combines two IAEItemStacks via addition.
-	 * 
+	 *
 	 * @param option
 	 *            , to add to the current one.
 	 */
@@ -44,7 +44,7 @@ public interface IAEFluidStack extends IAEStack
 
 	/**
 	 * quick way to get access to the Forge Fluid Definition.
-	 * 
+	 *
 	 * @return fluid definition
 	 */
 	Fluid getFluid();
diff --git a/src/main/java/appeng/api/storage/data/IAEItemStack.java b/src/main/java/appeng/api/storage/data/IAEItemStack.java
index 26cbbb58..f0ba26f9 100644
--- a/src/main/java/appeng/api/storage/data/IAEItemStack.java
+++ b/src/main/java/appeng/api/storage/data/IAEItemStack.java
@@ -6,11 +6,11 @@ import net.minecraft.item.ItemStack;
 /**
  * An alternate version of ItemStack for AE to keep tabs on things easier, and to support larger storage. stackSizes of
  * getItemStack will be capped.
- * 
+ *
  * You may hold on to these if you want, just make sure you let go of them when your not using them.
- * 
+ *
  * Don't Implement.
- * 
+ *
  * Construct with Util.createItemStack( ItemStack )
  */
 public interface IAEItemStack extends IAEStack
@@ -18,14 +18,14 @@ public interface IAEItemStack extends IAEStack
 
 	/**
 	 * creates a standard MC ItemStack for the item.
-	 * 
+	 *
 	 * @return new ItemStack
 	 */
 	public ItemStack getItemStack();
 
 	/**
 	 * create a AE Item clone
-	 * 
+	 *
 	 * @return the copy
 	 */
 	@Override
@@ -33,14 +33,14 @@ public interface IAEItemStack extends IAEStack
 
 	/**
 	 * is there NBT Data for this item?
-	 * 
+	 *
 	 * @return if there is
 	 */
 	boolean hasTagCompound();
 
 	/**
 	 * Combines two IAEItemStacks via addition.
-	 * 
+	 *
 	 * @param option
 	 *            to add to the current one.
 	 */
@@ -49,7 +49,7 @@ public interface IAEItemStack extends IAEStack
 
 	/**
 	 * quick way to get access to the MC Item Definition.
-	 * 
+	 *
 	 * @return item definition
 	 */
 	Item getItem();
@@ -66,7 +66,7 @@ public interface IAEItemStack extends IAEStack
 
 	/**
 	 * compare the item/damage/nbt of the stack.
-	 * 
+	 *
 	 * @param otherStack to be compared item
 	 * @return true if it is the same type (same item, damage, nbt)
 	 */
@@ -74,7 +74,7 @@ public interface IAEItemStack extends IAEStack
 
 	/**
 	 * compare the item/damage/nbt of the stack.
-	 * 
+	 *
 	 * @param stored to be compared item
 	 * @return true if it is the same type (same item, damage, nbt)
 	 */
diff --git a/src/main/java/appeng/api/storage/data/IAEStack.java b/src/main/java/appeng/api/storage/data/IAEStack.java
index 64a5963c..f20d0005 100644
--- a/src/main/java/appeng/api/storage/data/IAEStack.java
+++ b/src/main/java/appeng/api/storage/data/IAEStack.java
@@ -12,21 +12,21 @@ public interface IAEStack
 
 	/**
 	 * add two stacks together
-	 * 
+	 *
 	 * @param is added item
 	 */
 	void add(StackType is);
 
 	/**
 	 * number of items in the stack.
-	 * 
+	 *
 	 * @return basically ItemStack.stackSize
 	 */
 	long getStackSize();
 
 	/**
 	 * changes the number of items in the stack.
-	 * 
+	 *
 	 * @param stackSize
 	 *            , ItemStack.stackSize = N
 	 */
@@ -34,28 +34,28 @@ public interface IAEStack
 
 	/**
 	 * Same as getStackSize, but for requestable items. ( LP )
-	 * 
+	 *
 	 * @return basically itemStack.stackSize but for requestable items.
 	 */
 	long getCountRequestable();
 
 	/**
 	 * Same as setStackSize, but for requestable items. ( LP )
-	 * 
+	 *
 	 * @return basically itemStack.stackSize = N but for setStackSize items.
 	 */
 	StackType setCountRequestable(long countRequestable);
 
 	/**
 	 * true, if the item can be crafted.
-	 * 
+	 *
 	 * @return true, if it can be crafted.
 	 */
 	boolean isCraftable();
 
 	/**
 	 * change weather the item can be crafted.
-	 * 
+	 *
 	 * @param isCraftable can item be crafted
 	 */
 	StackType setCraftable(boolean isCraftable);
@@ -67,14 +67,14 @@ public interface IAEStack
 
 	/**
 	 * returns true, if the item can be crafted, requested, or extracted.
-	 * 
+	 *
 	 * @return isThisRecordMeaningful
 	 */
 	boolean isMeaningful();
 
 	/**
 	 * Adds more to the stack size...
-	 * 
+	 *
 	 * @param i additional stack size
 	 */
 	void incStackSize(long i);
@@ -86,34 +86,34 @@ public interface IAEStack
 
 	/**
 	 * adds items to the requestable
-	 * 
+	 *
 	 * @param i increased amount of requested items
 	 */
 	void incCountRequestable(long i);
 
 	/**
 	 * removes items from the requestable
-	 * 
+	 *
 	 * @param i decreased amount of requested items
 	 */
 	void decCountRequestable(long i);
 
 	/**
 	 * write to a NBTTagCompound.
-	 * 
+	 *
 	 * @param i to be written data
 	 */
 	void writeToNBT(NBTTagCompound i);
 
 	/**
 	 * Compare stacks using precise logic.
-	 * 
+	 *
 	 * a IAEItemStack to another AEItemStack or a ItemStack.
-	 * 
+	 *
 	 * or
-	 * 
+	 *
 	 * IAEFluidStack, FluidStack
-	 * 
+	 *
 	 * @param obj compared object
 	 * @return true if they are the same.
 	 */
@@ -122,9 +122,9 @@ public interface IAEStack
 
 	/**
 	 * compare stacks using fuzzy logic
-	 * 
+	 *
 	 * a IAEItemStack to another AEItemStack or a ItemStack.
-	 * 
+	 *
 	 * @param st stacks
 	 * @param mode used fuzzy mode
 	 * @return true if two stacks are equal based on AE Fuzzy Comparison.
@@ -133,7 +133,7 @@ public interface IAEStack
 
 	/**
 	 * Slower for disk saving, but smaller/more efficient for packets.
-	 * 
+	 *
 	 * @param data to be written data
 	 * @throws IOException
 	 */
@@ -141,21 +141,21 @@ public interface IAEStack
 
 	/**
 	 * Clone the Item / Fluid Stack
-	 * 
+	 *
 	 * @return a new Stack, which is copied from the original.
 	 */
 	StackType copy();
 
 	/**
 	 * create an empty stack.
-	 * 
+	 *
 	 * @return a new stack, which represents an empty copy of the original.
 	 */
 	StackType empty();
 
 	/**
 	 * obtain the NBT Data for the item.
-	 * 
+	 *
 	 * @return nbt data
 	 */
 	IAETagCompound getTagCompound();
diff --git a/src/main/java/appeng/api/storage/data/IAETagCompound.java b/src/main/java/appeng/api/storage/data/IAETagCompound.java
index ef283978..f37d32ac 100644
--- a/src/main/java/appeng/api/storage/data/IAETagCompound.java
+++ b/src/main/java/appeng/api/storage/data/IAETagCompound.java
@@ -1,11 +1,11 @@
 package appeng.api.storage.data;
 
-import net.minecraft.nbt.NBTTagCompound;
 import appeng.api.features.IItemComparison;
+import net.minecraft.nbt.NBTTagCompound;
 
 /**
  * Don't cast this... either compare with it, or copy it.
- * 
+ *
  * Don't Implement.
  */
 public interface IAETagCompound
@@ -18,7 +18,7 @@ public interface IAETagCompound
 
 	/**
 	 * compare to other NBTTagCompounds or IAETagCompounds
-	 * 
+	 *
 	 * @param a compared object
 	 * @return true, if they are the same.
 	 */
diff --git a/src/main/java/appeng/api/storage/data/IItemContainer.java b/src/main/java/appeng/api/storage/data/IItemContainer.java
index fb12493d..70afb740 100644
--- a/src/main/java/appeng/api/storage/data/IItemContainer.java
+++ b/src/main/java/appeng/api/storage/data/IItemContainer.java
@@ -6,9 +6,9 @@ import java.util.Collection;
 
 /**
  * Represents a list of items in AE.
- * 
+ *
  * Don't Implement.
- * 
+ *
  * Construct with Util.createItemList()
  */
 public interface IItemContainer
@@ -16,7 +16,7 @@ public interface IItemContainer
 
 	/**
 	 * add a stack to the list, this will merge the stack with an item already in the list if found.
-	 * 
+	 *
 	 * @param option added stack
 	 */
 	public void add(StackType option); // adds stack as is
diff --git a/src/main/java/appeng/api/storage/data/IItemList.java b/src/main/java/appeng/api/storage/data/IItemList.java
index d8f06d11..9f340ae4 100644
--- a/src/main/java/appeng/api/storage/data/IItemList.java
+++ b/src/main/java/appeng/api/storage/data/IItemList.java
@@ -4,9 +4,9 @@ import java.util.Iterator;
 
 /**
  * Represents a list of items in AE.
- * 
+ *
  * Don't Implement.
- * 
+ *
  * Construct with Util.createItemList()
  */
 public interface IItemList extends IItemContainer, Iterable
@@ -15,14 +15,14 @@ public interface IItemList extends IItemContainer extends IItemContainer getSettings();
 
 	/**
 	 * used to initialize the configuration manager, should be called for all settings.
-	 * 
+	 *
 	 * @param settingName name of setting
 	 * @param defaultValue default value of setting
 	 */
@@ -29,7 +29,7 @@ public interface IConfigManager
 
 	/**
 	 * Get Value of a particular setting
-	 * 
+	 *
 	 * @param settingName name of setting
 	 * @return value of setting
 	 */
@@ -37,7 +37,7 @@ public interface IConfigManager
 
 	/**
 	 * Change setting
-	 * 
+	 *
 	 * @param settingName to be changed setting
 	 * @param newValue  new value for setting
 	 * @return changed setting
@@ -46,14 +46,14 @@ public interface IConfigManager
 
 	/**
 	 * write all settings to the NBT Tag so they can be read later.
-	 * 
+	 *
 	 * @param dest to be written nbt tag
 	 */
 	void writeToNBT(NBTTagCompound dest);
 
 	/**
 	 * Only works after settings have been registered
-	 * 
+	 *
 	 * @param src to be read nbt tag
 	 */
 	void readFromNBT(NBTTagCompound src);
diff --git a/src/main/java/appeng/api/util/IOrientable.java b/src/main/java/appeng/api/util/IOrientable.java
index 8574a43a..9e573675 100644
--- a/src/main/java/appeng/api/util/IOrientable.java
+++ b/src/main/java/appeng/api/util/IOrientable.java
@@ -4,9 +4,9 @@ import net.minecraftforge.common.util.ForgeDirection;
 
 /**
  * Nearly all of AE's Tile Entities implement IOrientable.
- * 
+ *
  * and it can be used to manipulate the direction of some machines, most of these orientations are purely visual.
- * 
+ *
  * AE also responds to Block.rotateBlock
  */
 public interface IOrientable