Add Discord RPC back with new features, add beta splitscreen support, PR's from MCLCE used in this https://github.com/MCLCE/MinecraftConsoles/pull/1044 https://github.com/MCLCE/MinecraftConsoles/pull/1136 https://github.com/MCLCE/MinecraftConsoles/pull/1245
17 lines
562 B
C++
17 lines
562 B
C++
#pragma once
|
|
|
|
#include "Item.h"
|
|
|
|
class MilkBucketItem : public Item
|
|
{
|
|
private:
|
|
static const int DRINK_DURATION = static_cast<int>(20 * 1.6);
|
|
|
|
public:
|
|
MilkBucketItem(int id);
|
|
|
|
virtual shared_ptr<ItemInstance> useTimeDepleted(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player);
|
|
virtual int getUseDuration(shared_ptr<ItemInstance> itemInstance);
|
|
virtual UseAnim getUseAnimation(shared_ptr<ItemInstance> itemInstance);
|
|
virtual shared_ptr<ItemInstance> use(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player);
|
|
}; |