Cuberite
A lightweight, fast and extensible game server for Minecraft
DropperEntity.h
Go to the documentation of this file.
1 
2 // DropperEntity.h
3 
4 // Declares the cDropperEntity class representing a dropper block entity
5 
6 
7 
8 
9 
10 #pragma once
11 
12 #include "DropSpenserEntity.h"
13 
14 
15 
16 
17 
18 // tolua_begin
20  public cDropSpenserEntity
21 {
22  // tolua_end
23 
25 
26 public: // tolua_export
27 
29  cDropperEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld * a_World);
30 
31 protected:
32 
33  // cDropSpenserEntity overrides:
34  virtual void DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum) override;
35 } ; // tolua_export
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
cDropperEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
Constructor used for normal operation.
virtual void DropSpenseFromSlot(cChunk &a_Chunk, int a_SlotNum) override
Override this function to provide the specific behavior for item dropspensing (drop / shoot / pour / ...
cDropSpenserEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
Definition: Chunk.h:36
Definition: World.h:53