接口 FurnaceView

所有超级接口:
InventoryView

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

    • getTopInventory

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

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

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

      float getCookTime()
      此视图的烹饪时间。

      详见 Furnace.getCookTime()。

      返回:
      一个0到1之间的数字

      原文:The cook time for this view.

      See Furnace.getCookTime() for more information.

    • getBurnTime

      float getBurnTime()
      此视图的总燃烧时间。

      详见 Furnace.getBurnTime()。

      返回:
      一个0到1之间的数字

      原文:The total burn time for this view.

      See Furnace.getBurnTime() for more information.

    • isBurning

      boolean isBurning()
      检查熔炉是否正在燃烧。
      返回:
      如果熔炉正在燃烧则返回true

      原文:Checks whether or not the furnace is burning

    • setCookTime

      void setCookTime(int cookProgress, int cookDuration)
      设置烹饪时间。

      设置烹饪时间需要同时操作烹饪进度和烹饪时长。此方法通过简单除法获取熔炉视觉进度条内的总进度。 为获得清晰的视觉效果,(烹饪进度 / 烹饪时长) 应返回一个0到1之间的数字(包含0和1)。

      参数:
      cookProgress - 当前的烹饪进度
      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)
      设置燃烧时间。

      设置燃烧时间需要同时操作燃烧进度和燃烧时长。此方法通过简单除法获取熔炉视觉燃烧条内的总进度。 为获得清晰的视觉效果,(燃烧进度 / 燃烧时长) 应返回一个0到1之间的数字(包含0和1)。

      参数:
      burnProgress - 燃烧时长的进度
      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