This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
16 lines
503 B
C++
16 lines
503 B
C++
#include "stdafx.h"
|
|
#include "net.minecraft.world.entity.player.h"
|
|
#include "ItemInstance.h"
|
|
#include "BowlFoodItem.h"
|
|
|
|
BowlFoodItem::BowlFoodItem(int id, int nutrition) : FoodItem( id, nutrition, false )
|
|
{
|
|
setMaxStackSize(1);
|
|
}
|
|
|
|
std::shared_ptr<ItemInstance> BowlFoodItem::useTimeDepleted(std::shared_ptr<ItemInstance> instance, Level *level, std::shared_ptr<Player> player)
|
|
{
|
|
FoodItem::useTimeDepleted(instance, level, player);
|
|
|
|
return std::shared_ptr<ItemInstance>(new ItemInstance(Item::bowl));
|
|
} |