public boolean contains(Resource r) {
		boolean success = false;
		for(int i = 0; i < maxItems; i++) {
			if(items[i] != null && items[i] instanceof ResourceItem) {
				if(((ResourceItem)items[i]).getResource() == r) {
					success = true;
				}
			}
		}
		return success;
	}