Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Jukebox.java
1 package org.bukkit.block;
2 
3 import org.bukkit.Material;
4 
5 /**
6  * Represents a Jukebox
7  */
8 public interface Jukebox extends BlockState {
9  /**
10  * Get the record currently playing
11  *
12  * @return The record Material, or AIR if none is playing
13  */
14  public Material getPlaying();
15 
16  /**
17  * Set the record currently playing
18  *
19  * @param record The record Material, or null/AIR to stop playing
20  */
21  public void setPlaying(Material record);
22 
23  /**
24  * Check if the jukebox is currently playing a record
25  *
26  * @return True if there is a record playing
27  */
28  public boolean isPlaying();
29 
30  /**
31  * Stop the jukebox playing and eject the current record
32  *
33  * @return True if a record was ejected; false if there was none playing
34  */
35  public boolean eject();
36 }
void setPlaying(Material record)