}
private boolean getPickaxeFromChest(int x, int y, int z) {
TileEntity entity = worldObj.getBlockTileEntity(x, y, z);
if (entity instanceof TileEntityColoniesChest) {
TileEntityColoniesChest chest = (TileEntityColoniesChest)entity;
int invSize = chest.getSizeInventory();
for (int i = 0; i < invSize; i++) {
ItemStack stack = chest.getStackInSlot(i);
if (stack != null && isPickaxe(stack.getItem())) {
setPickaxe(stack.getItem());
((TileEntityColoniesChest)entity).setInventorySlotContents(i, ((TileEntityColoniesChest)entity).decrStackSize(0, stack.stackSize-1));
entity.onInventoryChanged();
return true;