mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-23 02:32:53 +00:00
28 lines
872 B
C++
28 lines
872 B
C++
#pragma once
|
|
|
|
class ShapelessRecipy : public Recipy {
|
|
private:
|
|
_eGroupType group;
|
|
const ItemInstance* result;
|
|
std::vector<ItemInstance*>* ingredients;
|
|
|
|
public:
|
|
ShapelessRecipy(ItemInstance* result,
|
|
std::vector<ItemInstance*>* ingredients,
|
|
_eGroupType egroup = Recipy::eGroupType_Decoration);
|
|
|
|
virtual const ItemInstance* getResultItem();
|
|
virtual const int getGroup();
|
|
virtual bool matches(std::shared_ptr<CraftingContainer> craftSlots,
|
|
Level* level);
|
|
virtual std::shared_ptr<ItemInstance> assemble(
|
|
std::shared_ptr<CraftingContainer> craftSlots);
|
|
virtual int size();
|
|
|
|
// 4J-PB - to return the items required to make a recipe
|
|
virtual bool
|
|
requiresRecipe(int iRecipe);
|
|
virtual void
|
|
collectRequirements(INGREDIENTS_REQUIRED* pIngReq);
|
|
};
|