Cuberite
A lightweight, fast and extensible game server for Minecraft
ZombiePigman.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 
6 
7 
8 
11 {
13 
14 public:
15 
16  cZombiePigman();
17 
19 
20 private:
21 
22  virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
23  virtual bool IsUndead(void) override { return true; }
24  virtual bool IsNetherNative(void) override { return true; }
25  virtual void KilledBy(TakeDamageInfo & a_TDI) override;
26  virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
27 } ;
#define CLASS_PROTODEF(classname)
Definition: Entity.h:13
Definition: Entity.h:76
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:215
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)
virtual void KilledBy(TakeDamageInfo &a_TDI) override
Called when the health drops below zero.
virtual bool IsNetherNative(void) override
Returns whether this mob spawns in the Nether in Vanilla.
Definition: ZombiePigman.h:24
virtual bool IsUndead(void) override
Returns whether this mob is undead (skeleton, zombie, etc.)
Definition: ZombiePigman.h:23
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
virtual void SpawnOn(cClientHandle &a_ClientHandle) override
Descendants override this function to send a command to the specified client to spawn the entity on t...