public class SlotPos extends AbstractInventoryProperty<String,com.flowpowered.math.vector.Vector2i>
Property.Operator
operator, value
Constructor and Description |
---|
SlotPos(int x,
int y)
Create a new SlotPos property for matching the specified value.
|
SlotPos(int x,
int y,
Property.Operator operator)
Create a new SlotPos property for matching the specified value with the
specified operator.
|
SlotPos(Object value,
Property.Operator operator)
Creates a new SlotPos property for matching the specified value with the
specified operator.
|
SlotPos(com.flowpowered.math.vector.Vector2i value)
Create a new SlotPos property for matching the specified value.
|
SlotPos(com.flowpowered.math.vector.Vector2i value,
Property.Operator operator)
Create a new SlotPos property for matching the specified value with the
specified operator.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Property<?,?> other) |
int |
getX()
Gets the X position of this slot within the queried parent.
|
int |
getY()
Gets the Y position of this slot within the queried parent.
|
static SlotPos |
greaterThan(Object value)
Create an SlotPos property which matches SlotPos properties with value
greater than this value.
|
static SlotPos |
greaterThanOrEqual(Object value)
Create an SlotPos property which matches SlotPos properties with value
greater than or equal to this value.
|
static SlotPos |
lessThan(Object value)
Create an SlotPos property which matches SlotPos properties with value
less than this value.
|
static SlotPos |
lessThanOrEqual(Object value)
Create an SlotPos property which matches SlotPos properties with value
less than or equal to this value.
|
static SlotPos |
not(Object value)
Create an SlotPos property which matches SlotPos properties with unequal
value.
|
static SlotPos |
of(int x,
int y)
Create an SlotPos property which matches SlotPos properties with equal
value.
|
static SlotPos |
of(Object value)
Create an SlotPos property which matches SlotPos properties with equal
value.
|
equals, getDefaultKey, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matches
public SlotPos(com.flowpowered.math.vector.Vector2i value)
value
- the value to matchpublic SlotPos(int x, int y)
x
- slot x positiony
- slot y positionpublic SlotPos(com.flowpowered.math.vector.Vector2i value, Property.Operator operator)
value
- the value to matchoperator
- the operator to use when comparing with other propertiespublic SlotPos(int x, int y, Property.Operator operator)
x
- slot x positiony
- slot y positionoperator
- the operator to use when comparing with other propertiespublic SlotPos(Object value, Property.Operator operator)
value
- the value to matchoperator
- the operator to use when comparing with other propertiespublic int getX()
public int getY()
public int compareTo(Property<?,?> other)
public static SlotPos of(Object value)
value
- the value to matchpublic static SlotPos of(int x, int y)
x
- the x position of the slot to matchy
- the y position of the slot to matchpublic static SlotPos not(Object value)
value
- the value to matchpublic static SlotPos greaterThan(Object value)
value
- the value to matchpublic static SlotPos greaterThanOrEqual(Object value)
value
- the value to matchpublic static SlotPos lessThan(Object value)
value
- the value to match