Files
MinecraftConsoles/Minecraft.World/BowlFoodItem.cpp
void_17 7074f35e4b shared_ptr -> std::shared_ptr
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.
2026-03-02 15:58:20 +07:00

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));
}