bool IsPlayingRecord(void)
Is in the Jukebox a Record?
unsigned char BLOCKTYPE
The datatype used by blockdata.
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
bool PlayRecord(int a_Record)
Plays the specified Record.
void SetRecord(int a_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.
Maximum disc itemtype number used.
static bool IsRecordItem(int a_Item)
virtual void SendTo(cClientHandle &) override
Sends the packet defining the block entity to the client specified.
#define BLOCKENTITY_PROTODEF(classname)
Place this macro in the declaration of each cBlockEntity descendant.
cBlockEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
virtual bool UsedBy(cPlayer *a_Player) override
Called when a player uses this entity; should open the UI window.
bool EjectRecord(void)
Ejects the currently held record as a pickup.