Cuberite
A lightweight, fast and extensible game server for Minecraft
Mooshroom.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "PassiveMonster.h"
5 
6 
7 
8 
9 
10 class cMooshroom :
11  public cPassiveMonster
12 {
14 
15 public:
16  cMooshroom(void);
17 
19 
20  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
21  virtual void OnRightClicked(cPlayer & a_Player) override;
22 
23  virtual void GetFollowedItems(cItems & a_Items) override
24  {
25  a_Items.Add(E_ITEM_WHEAT);
26  }
27 } ;
28 
29 
30 
31 
cMooshroom(void)
Definition: Mooshroom.cpp:11
virtual void GetFollowedItems(cItems &a_Items) override
Returns the items that the animal of this class follows when a player holds it in hand...
Definition: Mooshroom.h:23
Definition: Player.h:27
cPassiveMonster super
Definition: Mooshroom.h:13
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition: Mooshroom.cpp:20
Definition: Entity.h:73
#define CLASS_PROTODEF(classname)
Definition: Entity.h:11
virtual void OnRightClicked(cPlayer &a_Player) override
Called when the specified player right-clicks this entity.
Definition: Mooshroom.cpp:40
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:234