Class CRecipePredicate.Context
-
- All Implemented Interfaces:
public final class CRecipePredicate.ContextContext for CRecipePredicate
- Since:
5.0.17
-
-
Field Summary
Fields Modifier and Type Field Description private final CraftViewinputprivate final UUIDcrafterIdprivate final CReciperecipeprivate final MappedRelationrelationprivate final AsyncContextasyncContextprivate final Explainerexplainer
-
Constructor Summary
Constructors Constructor Description CRecipePredicate.Context(CraftView input, UUID crafterId, CRecipe recipe, MappedRelation relation, AsyncContext asyncContext, Explainer explainer)CRecipePredicate.Context(CraftView input, UUID crafterId, CRecipe recipe, MappedRelation relation, AsyncContext asyncContext)CRecipePredicate.Context(CraftView input, UUID crafterId, CRecipe recipe, MappedRelation relation)
-
Method Summary
Modifier and Type Method Description final CraftViewgetInput()final UUIDgetCrafterId()final CRecipegetRecipe()final MappedRelationgetRelation()final AsyncContextgetAsyncContext()final ExplainergetExplainer()final BooleanisAsync()Returns whether this inspection is async. final CRecipePredicate.ContexttoAsync()If no async context exists, returns a newly added one. final CRecipePredicate.ContextcopyWith(AsyncContext asyncContext)Copy with a given parameter -
-
Constructor Detail
-
CRecipePredicate.Context
CRecipePredicate.Context(CraftView input, UUID crafterId, CRecipe recipe, MappedRelation relation, AsyncContext asyncContext, Explainer explainer)
- Parameters:
input- Inspection targetcrafterId- Crafter UUIDrecipe- Reciperelation- Pre-result of inspectionasyncContext- Async context (since 5.0.20).explainer- Diagnostic recorder of the running search (since 5.3.0).
-
CRecipePredicate.Context
CRecipePredicate.Context(CraftView input, UUID crafterId, CRecipe recipe, MappedRelation relation, AsyncContext asyncContext)
- Parameters:
input- Inspection targetcrafterId- Crafter UUIDrecipe- Reciperelation- Pre-result of inspectionasyncContext- Async context (since 5.0.20).
-
CRecipePredicate.Context
CRecipePredicate.Context(CraftView input, UUID crafterId, CRecipe recipe, MappedRelation relation)
- Parameters:
input- Inspection targetcrafterId- Crafter UUIDrecipe- Reciperelation- Pre-result of inspection
-
-
Method Detail
-
getCrafterId
final UUID getCrafterId()
-
getRelation
final MappedRelation getRelation()
-
getAsyncContext
final AsyncContext getAsyncContext()
-
getExplainer
final Explainer getExplainer()
-
isAsync
final Boolean isAsync()
Returns whether this inspection is async.
- Returns:
Boolean
trueif asyncContext is non-null- Since:
5.0.20
-
toAsync
final CRecipePredicate.Context toAsync()
If no async context exists, returns a newly added one.
- Returns:
CRecipePredicate.Context Modified context
- Since:
5.0.20
-
copyWith
final CRecipePredicate.Context copyWith(AsyncContext asyncContext)
Copy with a given parameter
- Returns:
CRecipePredicate.Context Modified context
- Since:
5.0.17
-
-
-
-