first commit
This commit is contained in:
23
Minecraft.World/ShapelessRecipy.h
Normal file
23
Minecraft.World/ShapelessRecipy.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
class ShapelessRecipy : public Recipy
|
||||
{
|
||||
private:
|
||||
_eGroupType group;
|
||||
const ItemInstance *result;
|
||||
vector<ItemInstance *> *ingredients;
|
||||
|
||||
public:
|
||||
ShapelessRecipy(ItemInstance *result, vector<ItemInstance *> *ingredients, _eGroupType egroup=Recipy::eGroupType_Decoration);
|
||||
|
||||
virtual const ItemInstance *getResultItem();
|
||||
virtual const int getGroup();
|
||||
virtual bool matches(shared_ptr<CraftingContainer> craftSlots, Level *level);
|
||||
virtual shared_ptr<ItemInstance> assemble(shared_ptr<CraftingContainer> craftSlots);
|
||||
virtual int size();
|
||||
|
||||
// 4J-PB - to return the items required to make a recipe
|
||||
virtual bool requires(int iRecipe);
|
||||
virtual void requires(INGREDIENTS_REQUIRED *pIngReq);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user