Cuberite
A lightweight, fast and extensible game server for Minecraft
Enderman.h
Go to the documentation of this file.
1 
2 #pragma once
3 
5 
6 
7 
8 
9 
10 class cEnderman:
12 {
14 
15 public:
16 
17  cEnderman();
18 
20 
21  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
22  virtual void CheckEventSeePlayer(cChunk & a_Chunk) override;
23  virtual void EventLosePlayer(void) override;
24  virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
25 
26  bool IsScreaming(void) const {return m_bIsScreaming; }
27  BLOCKTYPE GetCarriedBlock(void) const {return m_CarriedBlock; }
28  NIBBLETYPE GetCarriedMeta(void) const {return m_CarriedMeta; }
29 
30 private:
31 
35 
36 } ;
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition: ChunkDef.h:44
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition: ChunkDef.h:41
#define CLASS_PROTODEF(classname)
Definition: Entity.h:13
Definition: Chunk.h:36
Definition: Entity.h:76
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:215
virtual void EventLosePlayer(void) override
Definition: Enderman.cpp:132
BLOCKTYPE GetCarriedBlock(void) const
Definition: Enderman.h:27
BLOCKTYPE m_CarriedBlock
Definition: Enderman.h:33
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Definition: Enderman.cpp:143
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition: Enderman.cpp:93
virtual void CheckEventSeePlayer(cChunk &a_Chunk) override
Definition: Enderman.cpp:107
NIBBLETYPE GetCarriedMeta(void) const
Definition: Enderman.h:28
NIBBLETYPE m_CarriedMeta
Definition: Enderman.h:34
bool m_bIsScreaming
Definition: Enderman.h:32
bool IsScreaming(void) const
Definition: Enderman.h:26
cPassiveAggressiveMonster(const AString &a_ConfigName, eMonsterType a_MobType, const AString &a_SoundHurt, const AString &a_SoundDeath, const AString &a_SoundAmbient, float a_Width, float a_Height)