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