the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "net.minecraft.world.entity.player.h"
3#include "ItemInstance.h"
4#include "BowlFoodItem.h"
5
6BowlFoodItem::BowlFoodItem(int id, int nutrition) : FoodItem( id, nutrition, false )
7{
8 setMaxStackSize(1);
9}
10
11shared_ptr<ItemInstance> BowlFoodItem::useTimeDepleted(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player)
12{
13 FoodItem::useTimeDepleted(instance, level, player);
14
15 return shared_ptr<ItemInstance>(new ItemInstance(Item::bowl));
16}