接口 BrewingStandView

所有超级接口:
InventoryView

public interface BrewingStandView extends InventoryView
An instance of InventoryView which provides extra methods related to brewing stand view data.
  • 方法详细资料

    • getTopInventory

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

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

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

      int getFuelLevel()
      Gets the fuel level of this brewing stand.

      The default maximum fuel level in minecraft is 20.

      返回:
      The amount of fuel level left
    • getBrewingTicks

      int getBrewingTicks()
      Gets the amount of brewing ticks left.
      返回:
      The amount of ticks left for the brewing task
    • setFuelLevel

      void setFuelLevel(int level) throws IllegalArgumentException
      Sets the fuel level left.
      参数:
      level - the level of the fuel, which is no less than 0
      抛出:
      IllegalArgumentException - if the level is less than 0
    • setBrewingTicks

      void setBrewingTicks(int ticks) throws IllegalArgumentException
      Sets the brewing ticks left.
      参数:
      ticks - the ticks left, which is no less than 0
      抛出:
      IllegalArgumentException - if the ticks are less than 0