接口 BrewingStandView

所有超级接口:
InventoryView

public interface BrewingStandView extends InventoryView
一个提供与酿造台视图数据相关额外方法的 InventoryView 实例。
  • 方法详细资料

    • getTopInventory

      @NotNull @NotNull BrewerInventory getTopInventory()
      从接口复制的说明: InventoryView
      获取此窗口视图上方的物品栏.

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

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

      int getFuelLevel()
      获取此酿造台的燃料等级。

      Minecraft中默认最大燃料等级为20。

      返回:
      剩余的燃料等级数量

      原文:Gets the fuel level of this brewing stand.

      The default maximum fuel level in minecraft is 20.

    • getBrewingTicks

      int getBrewingTicks()
      获取剩余的酿造刻数。
      返回:
      酿造任务剩余的刻数

      原文:Gets the amount of brewing ticks left.

    • setFuelLevel

      void setFuelLevel(int level) throws IllegalArgumentException
      设置剩余的燃料等级。
      参数:
      level - 燃料等级,不得小于0
      level - the level of the fuel, which is no less than 0
      抛出:
      IllegalArgumentException - 如果等级小于0

      原文:Sets the fuel level left.

      IllegalArgumentException - if the level is less than 0
    • setBrewingTicks

      void setBrewingTicks(int ticks) throws IllegalArgumentException
      设置剩余的酿造刻数。
      参数:
      ticks - 剩余的刻数,不得小于0
      ticks - the ticks left, which is no less than 0
      抛出:
      IllegalArgumentException - 如果刻数小于0

      原文:Sets the brewing ticks left.

      IllegalArgumentException - if the ticks are less than 0