API
Functions and classes available in the Lua API
Public Types | Public Member Functions | List of all members
cDropSpenserEntity Class Reference

#include <001b.h>

Inheritance diagram for cDropSpenserEntity:
Inheritance graph
[legend]

Public Types

enum  { ContentsHeight = 3, ContentsWidth = 3 }

Public Member Functions

void Activate (void)
 Sets the dropspenser to dropspense an item in the next tick.
void AddDropSpenserDir (int &a_BlockX, int &a_BlockY, int &a_BlockZ, NIBBLETYPE a_Direction)
 Modifies the block coords to match the dropspenser direction given (where the dropspensed pickups should materialize)
void SetRedstonePower (bool a_IsPowered)
 Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate.
- Public Member Functions inherited from cBlockEntityWithItems
cItemGridGetContents (void)
 Returns the ItemGrid used for storing the contents.
const cItemGetSlot (int a_SlotNum) const
const cItemGetSlot (int a_X, int a_Y) const
void SetSlot (int a_SlotNum, const cItem &a_Item)
void SetSlot (int a_X, int a_Y, const cItem &a_Item)
- Public Member Functions inherited from cBlockEntity
BLOCKTYPE GetBlockType (void) const
int GetChunkX (void) const
int GetChunkZ (void) const
int GetPosX (void) const
int GetPosY (void) const
int GetPosZ (void) const
int GetRelX (void) const
int GetRelZ (void) const
cWorldGetWorld (void) const

Additional Inherited Members

- Protected Member Functions inherited from cBlockEntity
 cBlockEntity (BLOCKTYPE a_BlockType, int a_BlockX, int a_BlockY, int a_BlockZ, cWorld *a_World)

Member Enumeration Documentation

anonymous enum
Enumerator:
ContentsHeight 
ContentsWidth 

Member Function Documentation

void cDropSpenserEntity::Activate ( void  )

Sets the dropspenser to dropspense an item in the next tick.

void cDropSpenserEntity::AddDropSpenserDir ( int &  a_BlockX,
int &  a_BlockY,
int &  a_BlockZ,
NIBBLETYPE  a_Direction 
)

Modifies the block coords to match the dropspenser direction given (where the dropspensed pickups should materialize)

void cDropSpenserEntity::SetRedstonePower ( bool  a_IsPowered)

Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate.