接口 FurnaceView

所有超级接口:
InventoryView

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

    • getTopInventory

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

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

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

      float getCookTime()
      The cook time for this view.

      See Furnace.getCookTime() for more information.

      返回:
      a number between 0 and 1
    • getBurnTime

      float getBurnTime()
      The total burn time for this view.

      See Furnace.getBurnTime() for more information.

      返回:
      a number between 0 and 1
    • isBurning

      boolean isBurning()
      Checks whether or not the furnace is burning
      返回:
      true given that the furnace is burning
    • setCookTime

      void setCookTime(int cookProgress, int cookDuration)
      Sets the cook time

      Setting cook time requires manipulation of both cookProgress and cookDuration. This method does a simple division to get total progress within the furnaces visual duration bar. For a clear visual effect (cookProgress / cookDuration) should return a number between 0 and 1 inclusively.

      参数:
      cookProgress - the current of the cooking
      cookDuration - the total cook time
    • setBurnTime

      void setBurnTime(int burnProgress, int burnDuration)
      Sets the burn time

      Setting burn time requires manipulation of both burnProgress and burnDuration. This method does a simple division to get total progress within the furnaces visual burning bar. For a clear visual effect (burnProgress / burnDuration) should return a number between 0 and 1 inclusively.

      参数:
      burnProgress - the progress towards the burnDuration
      burnDuration - the total duration the view should be lit