mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-18 07:12:55 +00:00
26 lines
856 B
C++
26 lines
856 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);
|
|
};
|