Cuberite
A lightweight, fast and extensible game server for Minecraft
IronGolem.h
Go to the documentation of this file.
1 
2 #pragma once
3 
5 
6 
7 
8 
9 
10 class cIronGolem :
12 {
14 
15 public:
16  cIronGolem(void);
17 
19 
20  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
21 
22  // Iron golems do not drown nor float
23  virtual void HandleAir(void) override {}
24  virtual void SetSwimState(cChunk & a_Chunk) override {}
25 } ;
26 
27 
28 
29 
cIronGolem(void)
Definition: IronGolem.cpp:10
cPassiveAggressiveMonster super
Definition: IronGolem.h:13
virtual void HandleAir(void) override
Called in each tick to handle air-related processing i.e.
Definition: IronGolem.h:23
Definition: Chunk.h:49
Definition: Entity.h:73
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition: IronGolem.cpp:19
virtual void SetSwimState(cChunk &a_Chunk) override
Called once per tick to set m_IsInFire, m_IsInLava, m_IsInWater and m_IsHeadInWater.
Definition: IronGolem.h:24
#define CLASS_PROTODEF(classname)
Definition: Entity.h:11
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:234