#include <craftdef.h>
|
| CraftDefinitionShaped ()=delete |
|
| CraftDefinitionShaped (const std::string &output_, unsigned int width_, const std::vector< std::string > &recipe_, const CraftReplacements &replacements_) |
|
virtual | ~CraftDefinitionShaped ()=default |
|
virtual std::string | getName () const |
|
virtual bool | check (const CraftInput &input, IGameDef *gamedef) const |
|
virtual CraftOutput | getOutput (const CraftInput &input, IGameDef *gamedef) const |
|
virtual CraftInput | getInput (const CraftOutput &output, IGameDef *gamedef) const |
|
virtual void | decrementInput (CraftInput &input, std::vector< ItemStack > &output_replacements, IGameDef *gamedef) const |
|
virtual u64 | getHash (CraftHashType type) const |
|
virtual void | initHash (IGameDef *gamedef) |
|
virtual std::string | dump () const |
|
| CraftDefinition ()=default |
|
virtual | ~CraftDefinition ()=default |
|
virtual std::string | getName () const =0 |
|
virtual bool | check (const CraftInput &input, IGameDef *gamedef) const =0 |
|
RecipePriority | getPriority () const |
|
virtual CraftOutput | getOutput (const CraftInput &input, IGameDef *gamedef) const =0 |
|
virtual CraftInput | getInput (const CraftOutput &output, IGameDef *gamedef) const =0 |
|
virtual void | decrementInput (CraftInput &input, std::vector< ItemStack > &output_replacements, IGameDef *gamedef) const =0 |
|
CraftHashType | getHashType () const |
|
virtual u64 | getHash (CraftHashType type) const =0 |
|
virtual void | initHash (IGameDef *gamedef)=0 |
|
virtual std::string | dump () const =0 |
|
◆ CraftDefinitionShaped() [1/2]
CraftDefinitionShaped::CraftDefinitionShaped |
( |
| ) |
|
|
delete |
◆ CraftDefinitionShaped() [2/2]
CraftDefinitionShaped::CraftDefinitionShaped |
( |
const std::string & |
output_, |
|
|
unsigned int |
width_, |
|
|
const std::vector< std::string > & |
recipe_, |
|
|
const CraftReplacements & |
replacements_ |
|
) |
| |
◆ ~CraftDefinitionShaped()
virtual CraftDefinitionShaped::~CraftDefinitionShaped |
( |
| ) |
|
|
virtualdefault |
◆ check()
Implements CraftDefinition.
References CRAFT_METHOD_NORMAL, craftGetBounds(), craftGetItemNames(), hash_inited, IGameDef::idef(), inputItemMatchesRecipe(), CraftInput::items, CraftInput::method, recipe, recipe_names, CraftInput::width, and width.
◆ decrementInput()
void CraftDefinitionShaped::decrementInput |
( |
CraftInput & |
input, |
|
|
std::vector< ItemStack > & |
output_replacements, |
|
|
IGameDef * |
gamedef |
|
) |
| const |
|
virtual |
◆ dump()
std::string CraftDefinitionShaped::dump |
( |
| ) |
const |
|
virtual |
◆ getHash()
◆ getInput()
◆ getName()
std::string CraftDefinitionShaped::getName |
( |
| ) |
const |
|
virtual |
◆ getOutput()
◆ initHash()
void CraftDefinitionShaped::initHash |
( |
IGameDef * |
gamedef | ) |
|
|
virtual |
◆ hash_inited
bool CraftDefinitionShaped::hash_inited = false |
|
private |
◆ output
std::string CraftDefinitionShaped::output = "" |
|
private |
◆ recipe
std::vector<std::string> CraftDefinitionShaped::recipe |
|
private |
◆ recipe_names
std::vector<std::string> CraftDefinitionShaped::recipe_names |
|
private |
◆ replacements
◆ width
unsigned int CraftDefinitionShaped::width = 1 |
|
private |
The documentation for this class was generated from the following files: