Interface ItemCraftResult


public interface ItemCraftResult
Container class containing the results of a Crafting event.
This class makes no guarantees about the nature or mutability of the returned values.
Since:
1.20.2
  • Method Details

    • getResult

      @NotNull @NotNull ItemStack getResult()
      The resulting ItemStack that was crafted.
      Returns:
      ItemStack that was crafted.
      Since:
      1.20.2
    • getResultingMatrix

      @NotNull @NotNull ItemStack @NotNull [] getResultingMatrix()
      Gets the resulting matrix from the crafting operation.
      Returns:
      resulting matrix
      Since:
      1.20.2
    • getOverflowItems

      @NotNull @NotNull List<ItemStack> getOverflowItems()
      Gets the overflowed items for items that don't fit back into the crafting matrix.
      Returns:
      overflow items
      Since:
      1.20.2