the whole game

This commit is contained in:
Kolyah35
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

25
src/world/item/BowlFoodItem.h Executable file
View 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__*/