@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ScrollRestriction other = (ScrollRestriction) obj;
		if (itemslots == null) {
			if (other.itemslots != null)
				return false;
		} else if (!itemslots.equals(other.itemslots))
			return false;
		if (itemtype == null) {
			if (other.itemtype != null)
				return false;
		} else if (!itemtype.equals(other.itemtype))
			return false;
		return true;
	}