Relocate Source to proper directory.

This commit is contained in:
AlgorithmX2
2014-09-23 19:26:27 -05:00
parent fe927ce65d
commit 386d18a059
785 changed files with 35585 additions and 35580 deletions
@@ -0,0 +1,54 @@
package appeng.util;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.BlockAir;
import net.minecraft.item.ItemStack;
public class InWorldToolOperationResult
{
public ItemStack BlockItem;
public List<ItemStack> Drops;
public static InWorldToolOperationResult getBlockOperationResult(ItemStack[] items)
{
List<ItemStack> temp = new ArrayList<ItemStack>();
ItemStack b = null;
for (ItemStack l : items)
{
if ( b == null )
{
Block bl = Block.getBlockFromItem( l.getItem() );
if ( bl != null && !(bl instanceof BlockAir) )
{
b = l;
continue;
}
}
temp.add( l );
}
return new InWorldToolOperationResult( b, temp );
}
public InWorldToolOperationResult() {
BlockItem = null;
Drops = null;
}
public InWorldToolOperationResult(ItemStack block, List<ItemStack> drops) {
BlockItem = block;
Drops = drops;
}
public InWorldToolOperationResult(ItemStack block) {
BlockItem = block;
Drops = null;
}
}