Package org.bukkit.inventory
Interface JukeboxInventory
Interface to the inventory of a Jukebox.
- 
Method SummaryMethods inherited from interface org.bukkit.inventory.InventoryaddItem, all, all, clear, clear, close, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, setContents, setItem, setMaxStackSize, setStorageContentsMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Method Details- 
setRecordSet the record in the jukebox.This will immediately start playing the inserted item or stop playing if the item provided is null. If the provided item is not a record (according to Tag.ITEMS_MUSIC_DISCS), this method will do nothing and not set the item in the inventory.- Parameters:
- item- the new record
 
- 
getRecordGet the record in the jukebox.- Returns:
- the current record
 
- 
getHolderDescription copied from interface:InventoryGets the block or entity belonging to the open inventory
 
-