Class SlotMatchers
- java.lang.Object
-
- org.spongepowered.api.item.inventory.slot.SlotMatchers
-
public final class SlotMatchers extends java.lang.ObjectA collection ofKeyValueMatchers that can be used to query forSlots.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyValueMatcher<java.lang.Integer>index(int index)Creates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against slot indexes.static KeyValueMatcher<java.lang.Integer>index(int index, KeyValueMatcher.Operator operator)Creates aKeyValueMatcherto match against slot indexes.static KeyValueMatcher<Vector2i>position(int x, int y)Creates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against a slot position.static KeyValueMatcher<Vector2i>position(int x, int y, KeyValueMatcher.Operator operator)Creates aKeyValueMatcherto match against a slot position.static KeyValueMatcher<Vector2i>position(Vector2i pos)Creates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against a slot position.static KeyValueMatcher<Vector2i>position(Vector2i pos, KeyValueMatcher.Operator operator)Creates aKeyValueMatcherto match against a slot position.
-
-
-
Method Detail
-
index
public static KeyValueMatcher<java.lang.Integer> index(int index)
Creates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against slot indexes.- Parameters:
index- The slot index- Returns:
- The property query
-
index
public static KeyValueMatcher<java.lang.Integer> index(int index, KeyValueMatcher.Operator operator)
Creates aKeyValueMatcherto match against slot indexes.- Parameters:
index- The slot index valueoperator- The operator- Returns:
- The property query
-
position
public static KeyValueMatcher<Vector2i> position(Vector2i pos)
Creates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against a slot position.- Parameters:
pos- The slot position- Returns:
- The property query
-
position
public static KeyValueMatcher<Vector2i> position(int x, int y)
Creates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against a slot position.- Parameters:
x- The x coordinatey- The y coordinate- Returns:
- The property query
-
position
public static KeyValueMatcher<Vector2i> position(Vector2i pos, KeyValueMatcher.Operator operator)
Creates aKeyValueMatcherto match against a slot position.- Parameters:
pos- The slot positionoperator- The operator- Returns:
- The property query
-
position
public static KeyValueMatcher<Vector2i> position(int x, int y, KeyValueMatcher.Operator operator)
Creates aKeyValueMatcherto match against a slot position.- Parameters:
x- The x coordinatey- The y coordinateoperator- The operator- Returns:
- The property query
-
-