接口 JukeboxInventory

所有超级接口:
Inventory, Iterable<ItemStack>

public interface JukeboxInventory extends Inventory
Interface to the inventory of a Jukebox.
  • 方法详细资料

    • setRecord

      void setRecord(@Nullable @Nullable ItemStack item)
      Set the record in the jukebox.

      This will immediately start playing the inserted item or stop playing if the item provided is null.

      参数:
      item - the new record
    • getRecord

      Get the record in the jukebox.
      返回:
      the current record
    • getHolder

      从接口复制的说明: Inventory
      获得此物品栏的持有者(方块或实体).

      原文:Gets the block or entity belonging to the open inventory

      指定者:
      getHolder 在接口中 Inventory
      返回:
      物品栏的持有者;null表示没有归属者