/** * Create a new InventoryDimension property with the specified value. * * @param value size to match * @param operator logical operator to use when comparing this property with * other properties */ public InventoryDimension(Object value, Operator operator) { super(Coerce.toVector2i(value), operator); }
/** * Creates a new SlotPos property for matching the specified value with the * specified operator. * * @param value the value to match * @param operator the operator to use when comparing with other properties */ public SlotPos(Object value, Operator operator) { super(Coerce.toVector2i(value), operator); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toVector2i(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toVector2i(other.getValue())); }
/** * Create a new SlotPos property for matching the specified value with the * specified operator. * * @param value the value to match * @param operator the operator to use when comparing with other properties */ public SlotPos(Object value, Operator operator) { super(Coerce.toVector2i(value), operator); }
/** * Create a new InventoryDimension property with the specified value. * * @param value size to match * @param operator logical operator to use when comparing this property with * other properties */ public InventoryDimension(Object value, Operator operator) { super(Coerce.toVector2i(value), operator); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toVector2i(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toVector2i(other.getValue())); }