Cuberite
A lightweight, fast and extensible game server for Minecraft
EnderCrystal.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Entity.h"
5 
6 
7 
8 
9 
10 // tolua_begin
12  public cEntity
13 {
14  // tolua_end
15  using super = cEntity;
16 
17 public:
18 
20 
21  cEnderCrystal(Vector3d a_Pos);
22 
23 private:
24 
25  // cEntity overrides:
26  virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
27  virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
28  virtual void KilledBy(TakeDamageInfo & a_TDI) override;
29 
30 }; // tolua_export
31 
32 
33 
34 
Definition: FastNBT.h:131
virtual void KilledBy(TakeDamageInfo &a_TDI) override
Called when the health drops below zero.
Definition: Chunk.h:49
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...
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Definition: Entity.h:73
cEntity(eEntityType a_EntityType, Vector3d a_Pos, double a_Width, double a_Height)
Definition: Entity.cpp:35
#define CLASS_PROTODEF(classname)
Definition: Entity.h:11