public interface Jukebox extends BlockState
Modifier and Type | Method and Description |
---|---|
boolean |
eject()
Stop the jukebox playing and eject the current record
|
Material |
getPlaying()
Get the record currently playing
|
boolean |
isPlaying()
Check if the jukebox is currently playing a record
|
void |
setPlaying(Material record)
Set the record currently playing
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
Material getPlaying()
void setPlaying(Material record)
record
- The record Material, or null/AIR to stop playingboolean isPlaying()
boolean eject()
Copyright © 2014. All rights reserved.