Interface PartialSearch.PartialSearchResult
-
- All Implemented Interfaces:
public interface PartialSearch.PartialSearchResultThe common interface for a single partial-search result entry.
Each instance represents one candidate recipe together with the match information derived from comparing the current CraftView against that recipe.
- Since:
5.0.21
-
-
Method Summary
Modifier and Type Method Description abstract Set<CoordinateComponent>matched()Returns the set of recipe slot coordinates that are covered by at least one input item. abstract Set<CoordinateComponent>notEnough()Returns the set of recipe slot coordinates that have no matching input item. PartialSearch.MatchStatestate()Returns the MatchState for this result. abstract CRecipegetRecipe()The candidate recipe that was evaluated. -
-
Method Detail
-
matched
abstract Set<CoordinateComponent> matched()
Returns the set of recipe slot coordinates that are covered by at least one input item.
- Since:
5.0.21
-
notEnough
abstract Set<CoordinateComponent> notEnough()
Returns the set of recipe slot coordinates that have no matching input item.
- Since:
5.0.21
-
state
PartialSearch.MatchState state()
Returns the MatchState for this result.
The default implementation returns MatchState.ALL when notEnough is empty, otherwise MatchState.PARTIAL_NOT_ENOUGH.
- Since:
5.0.21
-
-
-
-