#include <craftdef.h>
Public Member Functions | |
CraftDefinitionToolRepair ()=delete | |
CraftDefinitionToolRepair (float additional_wear_) | |
virtual | ~CraftDefinitionToolRepair ()=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 |
Public Member Functions inherited from CraftDefinition | |
CraftDefinition ()=default | |
virtual | ~CraftDefinition ()=default |
RecipePriority | getPriority () const |
CraftHashType | getHashType () const |
Private Attributes | |
float | additional_wear = 0.0f |
Additional Inherited Members | |
Public Types inherited from CraftDefinition | |
enum | RecipePriority { PRIORITY_NO_RECIPE , PRIORITY_TOOLREPAIR , PRIORITY_SHAPELESS_AND_GROUPS , PRIORITY_SHAPELESS , PRIORITY_SHAPED_AND_GROUPS , PRIORITY_SHAPED } |
Protected Attributes inherited from CraftDefinition | |
CraftHashType | hash_type |
RecipePriority | priority |
|
delete |
CraftDefinitionToolRepair::CraftDefinitionToolRepair | ( | float | additional_wear_ | ) |
References CraftDefinition::priority, and CraftDefinition::PRIORITY_TOOLREPAIR.
|
virtualdefault |
|
virtual |
Implements CraftDefinition.
References additional_wear, CRAFT_METHOD_NORMAL, craftToolRepair(), ItemStack::empty(), CraftInput::items, and CraftInput::method.
|
virtual |
Implements CraftDefinition.
References craftDecrementInput().
|
virtual |
Implements CraftDefinition.
References additional_wear.
|
inlinevirtual |
Implements CraftDefinition.
|
virtual |
Implements CraftDefinition.
References additional_wear, and CRAFT_METHOD_COOKING.
|
virtual |
Implements CraftDefinition.
|
virtual |
Implements CraftDefinition.
References additional_wear, craftToolRepair(), ItemStack::empty(), ItemStack::getItemString(), and CraftInput::items.
|
inlinevirtual |
Implements CraftDefinition.
References CRAFT_HASH_TYPE_COUNT, and CraftDefinition::hash_type.
|
private |
Referenced by check(), dump(), getInput(), and getOutput().