接口 JukeboxInventory
唱片机物品栏的接口。
-
方法概要
从接口继承的方法 org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
方法详细资料
-
setRecord
设置唱片机中的唱片。这将立即开始播放插入的物品,如果提供的物品为 null 则停止播放。
原文:Set the record in the jukebox.
This will immediately start playing the inserted item or stop playing if the item provided is null.
- 参数:
item- 新唱片
-
getRecord
获取唱片机中的唱片。原文:Get the record in the jukebox.
- 返回:
- 当前唱片
-
getHolder
从接口复制的说明:Inventory获得此物品栏的持有者(方块或实体).原文:Gets the block or entity belonging to the open inventory
-