Class CMatterPredicate.Context
-
- All Implemented Interfaces:
public final class CMatterPredicate.ContextCMatterPredicate context
-
-
Field Summary
Fields Modifier and Type Field Description private final CoordinateComponentcoordinateprivate final CMattermatterprivate final ItemStackinputprivate final Map<CoordinateComponent, ItemStack>mappedprivate final CReciperecipeprivate final UUIDcrafterIdprivate final AsyncContextasyncContextprivate final Explainerexplainer
-
Constructor Summary
Constructors Constructor Description CMatterPredicate.Context(CoordinateComponent coordinate, CMatter matter, ItemStack input, Map<CoordinateComponent, ItemStack> mapped, CRecipe recipe, UUID crafterId, AsyncContext asyncContext, Explainer explainer)CMatterPredicate.Context(CoordinateComponent coordinate, CMatter matter, ItemStack input, Map<CoordinateComponent, ItemStack> mapped, CRecipe recipe, UUID crafterId, AsyncContext asyncContext)CMatterPredicate.Context(CoordinateComponent coordinate, CMatter matter, ItemStack input, Map<CoordinateComponent, ItemStack> mapped, CRecipe recipe, UUID crafterId)
-
Method Summary
Modifier and Type Method Description final CoordinateComponentgetCoordinate()final CMattergetMatter()final ItemStackgetInput()final Map<CoordinateComponent, ItemStack>getMapped()final CRecipegetRecipe()final UUIDgetCrafterId()final AsyncContextgetAsyncContext()final ExplainergetExplainer()final BooleanisAsync()Returns whether this inspection is async. final CMatterPredicate.ContexttoAsync()If no async context exists, returns a newly added one. final CMatterPredicate.ContextcopyWith(CMatter matter, AsyncContext asyncContext)Copy with given parameters final CMatterPredicate.ContextcopyWith(CMatter matter)Copy with given parameters final CMatterPredicate.ContextcopyWith()Copy with given parameters -
-
Constructor Detail
-
CMatterPredicate.Context
CMatterPredicate.Context(CoordinateComponent coordinate, CMatter matter, ItemStack input, Map<CoordinateComponent, ItemStack> mapped, CRecipe recipe, UUID crafterId, AsyncContext asyncContext, Explainer explainer)
- Parameters:
coordinate- Inspection point on a recipe mappingmatter- Inspectorinput- Inspection targetmapped- User input items mappingrecipe- A CRecipe what contains a CMatterPredicate who receives thiscrafterId- Crafter UUIDasyncContext- Async context.explainer- Diagnostic recorder of the running search (since 5.3.0).
-
CMatterPredicate.Context
CMatterPredicate.Context(CoordinateComponent coordinate, CMatter matter, ItemStack input, Map<CoordinateComponent, ItemStack> mapped, CRecipe recipe, UUID crafterId, AsyncContext asyncContext)
- Parameters:
coordinate- Inspection point on a recipe mappingmatter- Inspectorinput- Inspection targetmapped- User input items mappingrecipe- A CRecipe what contains a CMatterPredicate who receives thiscrafterId- Crafter UUIDasyncContext- Async context.
-
CMatterPredicate.Context
CMatterPredicate.Context(CoordinateComponent coordinate, CMatter matter, ItemStack input, Map<CoordinateComponent, ItemStack> mapped, CRecipe recipe, UUID crafterId)
- Parameters:
coordinate- Inspection point on a recipe mappingmatter- Inspectorinput- Inspection targetmapped- User input items mappingrecipe- A CRecipe what contains a CMatterPredicate who receives thiscrafterId- Crafter UUID
-
-
Method Detail
-
getCoordinate
final CoordinateComponent getCoordinate()
-
getMapped
final Map<CoordinateComponent, ItemStack> getMapped()
-
getCrafterId
final UUID getCrafterId()
-
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 CMatterPredicate.Context toAsync()
If no async context exists, returns a newly added one.
- Returns:
CMatterPredicate.Context Modified context
- Since:
5.0.20
-
copyWith
@JvmOverloads() final CMatterPredicate.Context copyWith(CMatter matter, AsyncContext asyncContext)
Copy with given parameters
- Parameters:
matter- CMatterasyncContext- Async context- Returns:
CMatterPredicate.Context Modified context
-
copyWith
@JvmOverloads() final CMatterPredicate.Context copyWith(CMatter matter)
Copy with given parameters
- Parameters:
matter- CMatter- Returns:
CMatterPredicate.Context Modified context
-
copyWith
@JvmOverloads() final CMatterPredicate.Context copyWith()
Copy with given parameters
- Returns:
CMatterPredicate.Context Modified context
-
-
-
-