![]() |
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <CraftingRecipes.h>
Public Member Functions | |
cCraftingRecipe (const cCraftingGrid &a_CraftingGrid) | |
void | Clear (void) |
void | ConsumeIngredients (cCraftingGrid &a_CraftingGrid) |
Consumes ingredients from the crafting grid specified. More... | |
void | Dump (void) |
Dumps the entire recipe using LOGD() More... | |
cItem & | GetIngredient (int x, int y) const |
int | GetIngredientsHeight (void) const |
int | GetIngredientsWidth (void) const |
const cItem & | GetResult (void) const |
void | SetIngredient (int x, int y, ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemHealth) |
void | SetIngredient (int x, int y, const cItem &a_Item) |
void | SetResult (ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemHealth) |
void | SetResult (const cItem &a_Item) |
Protected Attributes | |
cCraftingGrid | m_Ingredients |
cItem | m_Result |
Definition at line 64 of file CraftingRecipes.h.
cCraftingRecipe::cCraftingRecipe | ( | const cCraftingGrid & | a_CraftingGrid | ) |
Definition at line 219 of file CraftingRecipes.cpp.
void cCraftingRecipe::Clear | ( | void | ) |
Definition at line 228 of file CraftingRecipes.cpp.
void cCraftingRecipe::ConsumeIngredients | ( | cCraftingGrid & | a_CraftingGrid | ) |
Consumes ingredients from the crafting grid specified.
Definition at line 247 of file CraftingRecipes.cpp.
void cCraftingRecipe::Dump | ( | void | ) |
Dumps the entire recipe using LOGD()
Definition at line 256 of file CraftingRecipes.cpp.
|
inline |
Definition at line 73 of file CraftingRecipes.h.
|
inline |
Definition at line 72 of file CraftingRecipes.h.
|
inline |
Definition at line 71 of file CraftingRecipes.h.
|
inline |
Definition at line 74 of file CraftingRecipes.h.
|
inline |
Definition at line 81 of file CraftingRecipes.h.
|
inline |
Definition at line 86 of file CraftingRecipes.h.
void cCraftingRecipe::SetResult | ( | ENUM_ITEM_ID | a_ItemType, |
char | a_ItemCount, | ||
short | a_ItemHealth | ||
) |
Definition at line 238 of file CraftingRecipes.cpp.
|
inline |
Definition at line 76 of file CraftingRecipes.h.
|
protected |
Definition at line 100 of file CraftingRecipes.h.
|
protected |
Definition at line 101 of file CraftingRecipes.h.