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, isPlaced, setData, setRawData, setType, setTypeId, update, update, updategetMetadata, hasMetadata, removeMetadata, setMetadataMaterial getPlaying()
void setPlaying(Material record)
record - The record Material, or null/AIR to stop playingboolean isPlaying()
boolean eject()
Copyright © 2022. All rights reserved.