接口 JukeboxInventory

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

public interface JukeboxInventory extends Inventory
唱片机物品栏的接口。
  • 方法详细资料

    • setRecord

      void setRecord(@Nullable @Nullable ItemStack item)
      设置唱片机中的唱片。

      这将立即开始播放插入的物品,如果提供的物品为 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

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