接口 CrafterView

所有超级接口:
InventoryView

public interface CrafterView extends InventoryView
一个提供与合成器视图数据相关额外方法的 InventoryView 实例。
  • 方法详细资料

    • getTopInventory

      从接口复制的说明: InventoryView
      获取此窗口视图上方的物品栏.

      原文:Get the upper inventory involved in this transaction.

      指定者:
      getTopInventory 在接口中 InventoryView
      返回:
      物品栏
    • isSlotDisabled

      boolean isSlotDisabled(int slot)
      检查给定的合成器槽位是否被禁用。
      参数:
      slot - 要检查的槽位
      slot - the slot to check
      返回:
      如果槽位被禁用则返回true,否则返回false

      原文:Checks if the given crafter slot is disabled.

    • isPowered

      boolean isPowered()
      检查此合成器视图是否被通电。
      返回:
      如果合成器被通电则返回true

      原文:Checks whether or not this crafter view is powered.

    • setSlotDisabled

      void setSlotDisabled(int slot, boolean disabled)
      设置合成器槽位的状态。
      参数:
      slot - 要设置状态的槽位
      disabled - 如果槽位应被禁用则为true,否则为false

      原文:Sets the status of the crafter slot.

      slot - the slot to set the status of
      disabled - true if the slot should be disabled otherwise false