mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-20 15:03:32 +00:00
the whole game
This commit is contained in:
25
src/world/item/BowlFoodItem.h
Executable file
25
src/world/item/BowlFoodItem.h
Executable file
@@ -0,0 +1,25 @@
|
||||
#ifndef NET_MINECRAFT_WORLD_ITEM__BowlFoodItem_H__
|
||||
#define NET_MINECRAFT_WORLD_ITEM__BowlFoodItem_H__
|
||||
|
||||
//package net.minecraft.world.item;
|
||||
|
||||
#include "FoodItem.h"
|
||||
|
||||
class BowlFoodItem: public FoodItem
|
||||
{
|
||||
typedef FoodItem super;
|
||||
public:
|
||||
BowlFoodItem(int id, int nutrition)
|
||||
: super(id, nutrition, false)
|
||||
{
|
||||
setMaxStackSize(1);
|
||||
}
|
||||
|
||||
ItemInstance useTimeDepleted(ItemInstance* instance, Level* level, Player* player) {
|
||||
super::useTimeDepleted(instance, level, player);
|
||||
*instance = ItemInstance(Item::bowl);
|
||||
return *instance;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_ITEM__BowlFoodItem_H__*/
|
||||
Reference in New Issue
Block a user