#include <craftdef.h>
◆ ICraftDefManager()
ICraftDefManager::ICraftDefManager |
( |
| ) |
|
|
default |
◆ ~ICraftDefManager()
virtual ICraftDefManager::~ICraftDefManager |
( |
| ) |
|
|
virtualdefault |
◆ dump()
virtual std::string ICraftDefManager::dump |
( |
| ) |
const |
|
pure virtual |
◆ getCraftRecipes()
◆ getCraftResult()
The main crafting function.
- Parameters
-
input | The input grid. |
output | CraftOutput where the result is placed. |
output_replacements | A vector of ItemStacks where replacements are placed if they cannot be placed in the input. Replacements can be placed in the input if the stack of the replaced item has a count of 1. |
decrementInput | If true, consume or replace input items. |
gamedef | |
- Returns
- true if a result was found, otherwise false.
Implemented in CCraftDefManager, and IWritableCraftDefManager.
Referenced by getCraftingResult(), and ModApiCraft::l_get_craft_result().
The documentation for this class was generated from the following file: