Class CRecipeImpl
-
- All Implemented Interfaces:
-
io.github.sakaki_aruka.customcrafter.recipe.CRecipe
public class CRecipeImpl implements CRecipe
A default CRecipe implementation class.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Map<CoordinateComponent, CMatter>itemsprivate final CRecipe.Typetypeprivate final List<CRecipePredicate>predicatesprivate final List<ResultSupplier>results
-
Constructor Summary
Constructors Constructor Description CRecipeImpl(String name, Map<CoordinateComponent, CMatter> items, CRecipe.Type type, List<CRecipePredicate> predicates, List<ResultSupplier> results)CRecipeImpl(String name, Map<CoordinateComponent, CMatter> items, CRecipe.Type type, List<CRecipePredicate> predicates)CRecipeImpl(String name, Map<CoordinateComponent, CMatter> items, CRecipe.Type type)
-
Method Summary
Modifier and Type Method Description StringgetName()Map<CoordinateComponent, CMatter>getItems()CRecipe.TypegetType()List<CRecipePredicate>getPredicates()List<ResultSupplier>getResults()final static CRecipeImplshapeless(String name, List<CMatter> items, List<CRecipePredicate> predicates, List<ResultSupplier> results)Shapeless recipe build wrapper. final static CRecipeImplshapeless(String name, List<CMatter> items, List<CRecipePredicate> predicates)Shapeless recipe build wrapper. final static CRecipeImplshapeless(String name, List<CMatter> items)Shapeless recipe build wrapper. -
Methods inherited from class io.github.sakaki_aruka.customcrafter.recipe.CRecipe
asyncGetRecipePredicateResults, asyncGetResults, firstFailedRecipePredicate, getRecipePredicateResults, getResults, getTimes, isValidRecipe, matchGroups, requiresInputItemAmountMax, requiresInputItemAmountMin -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CRecipeImpl
CRecipeImpl(String name, Map<CoordinateComponent, CMatter> items, CRecipe.Type type, List<CRecipePredicate> predicates, List<ResultSupplier> results)
- Parameters:
name- A name of this recipe.items- Elements of this recipe.type- A type of this recipe.predicates- Additional conditions evaluated during recipe matching.results- A ResultSupplier list.
-
CRecipeImpl
CRecipeImpl(String name, Map<CoordinateComponent, CMatter> items, CRecipe.Type type, List<CRecipePredicate> predicates)
- Parameters:
name- A name of this recipe.items- Elements of this recipe.type- A type of this recipe.predicates- Additional conditions evaluated during recipe matching.
-
CRecipeImpl
CRecipeImpl(String name, Map<CoordinateComponent, CMatter> items, CRecipe.Type type)
- Parameters:
name- A name of this recipe.items- Elements of this recipe.type- A type of this recipe.
-
-
Method Detail
-
getItems
Map<CoordinateComponent, CMatter> getItems()
-
getType
CRecipe.Type getType()
-
getPredicates
List<CRecipePredicate> getPredicates()
-
getResults
List<ResultSupplier> getResults()
-
shapeless
@JvmOverloads() final static CRecipeImpl shapeless(String name, List<CMatter> items, List<CRecipePredicate> predicates, List<ResultSupplier> results)
Shapeless recipe build wrapper.
This calls the constructor with arguments and CRecipe.Type.SHAPELESS.
- Parameters:
name- A name of this recipe.items- Matter list.predicates- Additional conditions evaluated during recipe matching.results- A ResultSupplier list.- Returns:
CRecipeImpl A shapeless recipe
- Since:
5.0.14
-
shapeless
@JvmOverloads() final static CRecipeImpl shapeless(String name, List<CMatter> items, List<CRecipePredicate> predicates)
Shapeless recipe build wrapper.
This calls the constructor with arguments and CRecipe.Type.SHAPELESS.
- Parameters:
name- A name of this recipe.items- Matter list.predicates- Additional conditions evaluated during recipe matching.- Returns:
CRecipeImpl A shapeless recipe
- Since:
5.0.14
-
shapeless
@JvmOverloads() final static CRecipeImpl shapeless(String name, List<CMatter> items)
Shapeless recipe build wrapper.
This calls the constructor with arguments and CRecipe.Type.SHAPELESS.
- Parameters:
name- A name of this recipe.items- Matter list.- Returns:
CRecipeImpl A shapeless recipe
- Since:
5.0.14
-
-
-
-