mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-09 08:53:51 +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);
|
|
};
|