cJukeboxEntity


Index:
Articles
Classes
Hooks

Quick navigation:
BannerPattern
BossBarColor
BossBarDivisionType
cArrowEntity
cBeaconEntity
cBedEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cColor
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEnderCrystal
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLeashKnot
cLineBlockTracer
cLuaWindow
cMap
cMapManager
cMobHeadEntity
cMobSpawnerEntity
cMojangAPI
cMonster
cNetwork
cNoteEntity
cObjective
cPainting
cPawn
cPickup
cPlayer
cPlugin
cPluginLua
cPluginManager
cProjectileEntity
cRankManager
cRoot
cScoreboard
cServer
cServerHandle
cSignEntity
cSplashPotionEntity
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cUDPEndpoint
cUrlClient
cUrlParser
CustomStatistic
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
StatisticsManager
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cJukeboxEntity class

This class represents a jukebox in the world. It can play the records, either when the player uses the record on the jukebox, or when a plugin instructs it to play.


Inheritance

This class inherits from the following parent classes:


Functions

NameParametersReturn valueNotes
EjectRecord
boolean
Ejects the current record as a pickup. No action if there's no current record. To remove record without generating the pickup, use SetRecord(0). Returns true if pickup ejected.
GetRecord
number
Returns the record currently present. Zero for no record, E_ITEM_*_DISC for records.
IsPlayingRecord
boolean
Returns true if the jukebox is playing a record.
IsRecordItem
ItemTypenumber
boolean
(STATIC) Returns true if the specified item is a record that can be played.
PlayRecord
RecordItemTypenumber
boolean
Plays the specified Record. Return false if the parameter isn't a playable Record (E_ITEM_XXX_DISC). If there is a record already playing, ejects it first.
SetRecord
RecordItemTypenumber
Sets the currently present record. Use zero for no record, or E_ITEM_*_DISC for records.

Functions inherited from cBlockEntity

NameParametersReturn valueNotes
GetBlockType
BLOCKTYPEnumber
Returns the blocktype which is represented by this blockentity. This is the primary means of type-identification
GetChunkX
number
Returns the chunk X-coord of the block entity's chunk
GetChunkZ
number
Returns the chunk Z-coord of the block entity's chunk
GetPos
Vector3i
Returns the name of the parent class, or empty string if no parent class.
GetPosX
number
Returns the block X-coord of the block entity's block
GetPosY
number
Returns the block Y-coord of the block entity's block
GetPosZ
number
Returns the block Z-coord of the block entity's block
GetRelPos
Vector3i
Returns the relative coords of the block entity's block within its chunk
GetRelX
number
Returns the relative X coord of the block entity's block within the chunk
GetRelZ
number
Returns the relative Z coord of the block entity's block within the chunk
GetWorld
cWorld
Returns the world to which the block entity belongs
Generated by APIDump on 2022-10-28 17:00:47, Build ID Unknown, Commit approx: 21ec3ebe26bff24b5fc6d96f86a441c9c9628247