Interface RecipeInventoryHolder

All Superinterfaces:
InventoryHolder
All Known Implementing Classes:
BlockEntityBlastFurnace, BlockEntityFurnace, BlockEntitySmoker

@Since("1.19.50-r3") @PowerNukkitXOnly public interface RecipeInventoryHolder extends InventoryHolder
标注此物品栏拥有者的物品栏作为合成用途,常见于机器,如熔炉等。
This inventory holder's inventory is used for recipe, usually in machines, such as furnaces, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    获取该物品栏拥有者的物品栏的原料视图,这个视图通常是以InventorySlice指向的原始物品栏用于存储原料的一部分。
    Get the ingredients view of the inventory holder's inventory, which is usually a part of the raw inventory.
    获取该物品栏拥有者的物品栏的产物视图,这个视图通常是以InventorySlice指向的原始物品栏用于存储结果的一部分。
    Get the result view of the inventory holder's inventory, which is usually a part of the raw inventory.

    Methods inherited from interface cn.nukkit.inventory.InventoryHolder

    getInventory
  • Method Details

    • getIngredientView

      Inventory getIngredientView()
      获取该物品栏拥有者的物品栏的原料视图,这个视图通常是以InventorySlice指向的原始物品栏用于存储原料的一部分。
      Get the ingredients view of the inventory holder's inventory, which is usually a part of the raw inventory.
      Returns:
      原料视图 the ingredients view of the inventory holder's inventory
    • getProductView

      Inventory getProductView()
      获取该物品栏拥有者的物品栏的产物视图,这个视图通常是以InventorySlice指向的原始物品栏用于存储结果的一部分。
      Get the result view of the inventory holder's inventory, which is usually a part of the raw inventory.
      Returns:
      产物视图 the result view of the inventory holder's inventory