public class InventoryDimension extends AbstractInventoryProperty<String,com.flowpowered.math.vector.Vector2i>
InventoryRow of length 9 or GridInventory of size 3x3.Property.Operator| Modifier and Type | Field and Description | 
|---|---|
| static String | PROPERTY_NAME | 
operator, value| Constructor and Description | 
|---|
| InventoryDimension(int width,
                  int height)Create a new InventoryDimension property with the specified dimensions. | 
| InventoryDimension(int width,
                  int height,
                  Property.Operator operator)Create a new InventoryDimension property with the specified dimensions. | 
| InventoryDimension(Object value,
                  Property.Operator operator)Create a new InventoryDimension property with the specified value. | 
| InventoryDimension(com.flowpowered.math.vector.Vector2i value)Create a new InventoryDimension property with the specified value. | 
| InventoryDimension(com.flowpowered.math.vector.Vector2i value,
                  Property.Operator operator)Create a new InventoryDimension property with the specified value. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Property<?,?> other) | 
| int | getColumns()Gets the number of columns in this inventory. | 
| int | getRows()Gets the number of rows in this inventory. | 
| static InventoryDimension | greaterThan(Object value)Create an InventoryDimension property which matches InventoryDimension
 properties with value greater than this value. | 
| static InventoryDimension | greaterThanOrEqual(Object value)Create an InventoryDimension property which matches InventoryDimension
 properties with value greater than or equal to this value. | 
| static InventoryDimension | lessThan(Object value)Create an InventoryDimension property which matches InventoryDimension
 properties with value less than this value. | 
| static InventoryDimension | lessThanOrEqual(Object value)Create an InventoryDimension property which matches InventoryDimension
 properties with value less than or equal to this value. | 
| static InventoryDimension | not(Object value)Create an InventoryDimension property which matches InventoryDimension
 properties with unequal value. | 
| static InventoryDimension | of(int width,
  int height)Create an InventoryDimension property which matches InventoryDimension
 properties with equal value. | 
| static InventoryDimension | of(Object value)Create an InventoryDimension property which matches InventoryDimension
 properties with equal value. | 
equals, getDefaultKey, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matchespublic static final String PROPERTY_NAME
public InventoryDimension(com.flowpowered.math.vector.Vector2i value)
value - size to matchpublic InventoryDimension(int width,
                          int height)
width - width of the inventory to matchheight - height of the inventory to matchpublic InventoryDimension(com.flowpowered.math.vector.Vector2i value,
                          Property.Operator operator)
value - size to matchoperator - logical operator to use when comparing this property with
      other propertiespublic InventoryDimension(int width,
                          int height,
                          Property.Operator operator)
width - width of the inventory to matchheight - height of the inventory to matchoperator - logical operator to use when comparing this property with
      other propertiespublic InventoryDimension(Object value, Property.Operator operator)
value - size to matchoperator - logical operator to use when comparing this property with
      other propertiespublic int getColumns()
public int getRows()
public int compareTo(Property<?,?> other)
public static InventoryDimension of(Object value)
value - value to matchpublic static InventoryDimension of(int width, int height)
width - x coordinate to matchheight - y coordinate to matchpublic static InventoryDimension not(Object value)
value - value to matchpublic static InventoryDimension greaterThan(Object value)
value - value to matchpublic static InventoryDimension greaterThanOrEqual(Object value)
value - value to matchpublic static InventoryDimension lessThan(Object value)
value - value to matchpublic static InventoryDimension lessThanOrEqual(Object value)
value - value to match