Class SlotMatchers
java.lang.Object
org.spongepowered.api.item.inventory.slot.SlotMatchers
A collection of 
KeyValueMatchers that
 can be used to query for Slots.- 
Method SummaryModifier and TypeMethodDescriptionstatic KeyValueMatcher<Integer>index(int index) Creates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against slot indexes.static KeyValueMatcher<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>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 Details- 
indexCreates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against slot indexes.- Parameters:
- index- The slot index
- Returns:
- The property query
 
- 
indexCreates aKeyValueMatcherto match against slot indexes.- Parameters:
- index- The slot index value
- operator- The operator
- Returns:
- The property query
 
- 
positionCreates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against a slot position.- Parameters:
- pos- The slot position
- Returns:
- The property query
 
- 
positionCreates aKeyValueMatcherwith the default operatorKeyValueMatcher.Operator.EQUALto match against a slot position.- Parameters:
- x- The x coordinate
- y- The y coordinate
- Returns:
- The property query
 
- 
positionCreates aKeyValueMatcherto match against a slot position.- Parameters:
- pos- The slot position
- operator- The operator
- Returns:
- The property query
 
- 
positionCreates aKeyValueMatcherto match against a slot position.- Parameters:
- x- The x coordinate
- y- The y coordinate
- operator- The operator
- Returns:
- The property query
 
 
-