5 #include "../BlockType.h"
47 virtual void Destroy(
void)
override;
@ E_ITEM_LAST_DISC
Maximum disc itemtype number used.
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
unsigned char BLOCKTYPE
The datatype used by blockdata.
cBlockEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
virtual void SendTo(cClientHandle &) override
Sends the packet defining the block entity to the client specified.
bool PlayRecord(int a_Record)
Plays the specified Record.
virtual void CopyFrom(const cBlockEntity &a_Src) override
Copies all properties of a_Src into this entity, except for its m_World and location.
bool IsPlayingRecord(void) const
Is in the Jukebox a Record?
virtual cItems ConvertToPickups() const override
Returns the contents of this block entity that it would drop if broken.
bool EjectRecord(void)
Ejects the currently held record as a pickup.
cJukeboxEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
virtual void Destroy(void) override
Called when this block entity's associated block is destroyed.
virtual bool UsedBy(cPlayer *a_Player) override
Called when a player uses this entity; should open the UI window.
static bool IsRecordItem(int a_Item)
void SetRecord(int a_Record)
This class bridges a vector of cItem for safe access via Lua.