if (container != null) container.onBlockDestroyed();
}
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
TileEntityContainer container = getContainer(world, x, y, z);
if (container instanceof IHasAttachments) {
ItemStack pick = ((IHasAttachments)container).getAttachments().pick(target);
if (pick != null) return pick;
}
ItemStack pick = super.getPickBlock(target, world, x, y, z);
return container.onPickBlock(pick, target);
}