Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.block.Jukebox Interface Reference
Inheritance diagram for org.bukkit.block.Jukebox:
org.bukkit.block.BlockState org.bukkit.metadata.Metadatable

Public Member Functions

Material getPlaying ()
 
void setPlaying (Material record)
 
boolean isPlaying ()
 
boolean eject ()
 
- Public Member Functions inherited from org.bukkit.block.BlockState
Block getBlock ()
 
MaterialData getData ()
 
Material getType ()
 
int getTypeId ()
 
byte getLightLevel ()
 
World getWorld ()
 
int getX ()
 
int getY ()
 
int getZ ()
 
Location getLocation ()
 
Location getLocation (Location loc)
 
Chunk getChunk ()
 
void setData (MaterialData data)
 
void setType (Material type)
 
boolean setTypeId (int type)
 
boolean update ()
 
boolean update (boolean force)
 
boolean update (boolean force, boolean applyPhysics)
 
byte getRawData ()
 
void setRawData (byte data)
 

Detailed Description

Represents a Jukebox

Definition at line 8 of file Jukebox.java.

Member Function Documentation

boolean org.bukkit.block.Jukebox.eject ( )

Stop the jukebox playing and eject the current record

Returns
True if a record was ejected; false if there was none playing
Material org.bukkit.block.Jukebox.getPlaying ( )

Get the record currently playing

Returns
The record Material, or AIR if none is playing
boolean org.bukkit.block.Jukebox.isPlaying ( )

Check if the jukebox is currently playing a record

Returns
True if there is a record playing
void org.bukkit.block.Jukebox.setPlaying ( Material  record)

Set the record currently playing

Parameters
recordThe record Material, or null/AIR to stop playing

The documentation for this interface was generated from the following file: