AutoSync: source code formatting

This commit is contained in:
DarkGuardsman 2013-09-05 20:04:25 -04:00
parent cb385a284b
commit 5b57572c89
12 changed files with 20 additions and 20 deletions

View file

@ -855,7 +855,7 @@ public class TileEntityArmbot extends TileEntityAssembly implements IMultiBlock,
while (it.hasNext())
{
ItemWorldHelper.dropItemStack(worldObj, handPosition, it.next(),false);
ItemWorldHelper.dropItemStack(worldObj, handPosition, it.next(), false);
}
this.grabbedEntities.clear();

View file

@ -9,7 +9,7 @@ import universalelectricity.core.vector.Vector3;
import dark.core.prefab.helpers.ItemWorldHelper;
/** Used by arms to break a specific block in a position.
*
*
* @author Calclavia */
public class CommandBreak extends Command
{

View file

@ -190,7 +190,7 @@ public class TileEntityImprinter extends TileEntityAdvanced implements ISidedInv
}
/** Construct an InventoryCrafting Matrix on the fly.
*
*
* @return */
public InventoryCrafting getCraftingMatrix()
{

View file

@ -31,7 +31,7 @@ public abstract class TileEntityFilterable extends TileEntityAssembly implements
}
/** Looks through the things in the filter and finds out which item is being filtered.
*
*
* @return Is this filterable block filtering this specific ItemStack? */
public boolean isFiltering(ItemStack itemStack)
{

View file

@ -23,10 +23,10 @@ public abstract class BlockAssembly extends BlockMachine
public boolean onMachineActivated(World world, int x, int y, int z, EntityPlayer entityPlayer, int side, float hitX, float hitY, float hitZ)
{
if(entityPlayer != null && entityPlayer.getHeldItem() != null && entityPlayer.getHeldItem().itemID == Item.stick.itemID)
if (entityPlayer != null && entityPlayer.getHeldItem() != null && entityPlayer.getHeldItem().itemID == Item.stick.itemID)
{
TileEntity entity = world.getBlockTileEntity(x, y, z);
if(entity instanceof TileEntityAssembly)
if (entity instanceof TileEntityAssembly)
{
System.out.println(((TileEntityAssembly) entity).getTileNetwork().toString());
}

View file

@ -19,7 +19,7 @@ import dark.assembly.common.AssemblyLine;
/** A block that allows the placement of mass amount of a specific item within it. It will be allowed
* to go on Conveyor Belts
*
*
* @author Calclavia */
public class BlockCrate extends BlockAssembly
{
@ -210,7 +210,7 @@ public class BlockCrate extends BlockAssembly
}
/** Inserts all items of the same type this player has into the crate.
*
*
* @return True on success */
public boolean insertAllItems(TileEntityCrate tileEntity, EntityPlayer player)
{
@ -255,7 +255,7 @@ public class BlockCrate extends BlockAssembly
}
/** Ejects and item out of the crate and spawn it under the player entity.
*
*
* @param tileEntity
* @param player
* @param requestSize - The maximum stack size to take out. Default should be 64.
@ -307,7 +307,7 @@ public class BlockCrate extends BlockAssembly
}
/** Puts an itemStack into the crate.
*
*
* @param tileEntity
* @param itemStack */
public static ItemStack addStackToCrate(TileEntityCrate tileEntity, ItemStack itemStack)

View file

@ -13,7 +13,7 @@ import dark.assembly.common.TabAssemblyLine;
import dark.assembly.common.imprinter.prefab.BlockImprintable;
/** A block that manipulates item movement between inventories.
*
*
* @author Calclavia */
public class BlockManipulator extends BlockImprintable
{
@ -71,7 +71,7 @@ public class BlockManipulator extends BlockImprintable
manip.toggleOutput();
manip.toggleInversion();
}
entityPlayer.sendChatToPlayer(ChatMessageComponent.func_111066_d("Manip. outputing = "+manip.isOutput()));
entityPlayer.sendChatToPlayer(ChatMessageComponent.func_111066_d("Manip. outputing = " + manip.isOutput()));
}

View file

@ -15,7 +15,7 @@ public class InventoryCrate extends InvChest
/** Clones the single stack into an inventory format for automation interaction */
public void buildInventory(ItemStack sampleStack)
{
this.containedItems= new ItemStack[this.getSizeInventory()];
this.containedItems = new ItemStack[this.getSizeInventory()];
if (sampleStack != null)
{
ItemStack baseStack = sampleStack.copy();

View file

@ -72,19 +72,19 @@ public class NetworkAssembly extends NetworkSharedPower
this.lastDemandCalcTime = time;
this.lastNetDemand = currentDemand;
//TODO calculate the averages over time to produce a better number
if(this.minDemand == 0)
if (this.minDemand == 0)
{
this.minDemand = currentDemand;
}
if(this.averageDemand == 0)
if (this.averageDemand == 0)
{
this.averageDemand = currentDemand;
}
if(currentDemand > this.maxDemand)
if (currentDemand > this.maxDemand)
{
this.maxDemand = currentDemand;
}
if(currentDemand < this.minDemand)
if (currentDemand < this.minDemand)
{
this.minDemand = currentDemand;
}

View file

@ -17,7 +17,7 @@ import dark.core.prefab.tilenetwork.NetworkTileEntities;
/** A class to be inherited by all machines on the assembly line. This class acts as a single peace
* in a network of similar tiles allowing all to share power from one or more sources
*
*
* @author DarkGuardsman */
public abstract class TileEntityAssembly extends TileEntityMachine implements INetworkEnergyPart
{

View file

@ -51,7 +51,7 @@ public class TileEntityCrate extends TileEntityInv implements IPacketReceiver, I
/** Turns the inventory array into a single stack of matching items. This assumes that all items
* in the crate are the same TODO eject minority items and only keep the majority that are the
* same to prevent duplication issues
*
*
* @param force - force a rebuild of the inventory from the single stack created */
public void buildSampleStack()
{

View file

@ -21,7 +21,7 @@ import dark.assembly.common.AssemblyLine;
import dark.assembly.common.machine.TileEntityAssembly;
/** Conveyer belt TileEntity that allows entities of all kinds to be moved
*
*
* @author DarkGuardsman */
public class TileEntityConveyorBelt extends TileEntityAssembly implements IPacketReceiver, IBelt, IRotatable
{