Class RecipeWrapper

java.lang.Object
net.neoforged.neoforge.items.wrapper.RecipeWrapper
All Implemented Interfaces:
net.minecraft.world.item.crafting.RecipeInput

public class RecipeWrapper extends Object implements net.minecraft.world.item.crafting.RecipeInput
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final IItemHandler
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    getItem(int slot)
    Returns the stack in this slot.
    int
    Returns the size of this inventory.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.item.crafting.RecipeInput

    isEmpty
  • Field Details

  • Constructor Details

  • Method Details

    • size

      public int size()
      Returns the size of this inventory.
      Specified by:
      size in interface net.minecraft.world.item.crafting.RecipeInput
    • getItem

      public net.minecraft.world.item.ItemStack getItem(int slot)
      Returns the stack in this slot. This stack should be a modifiable reference, not a copy of a stack in your inventory.
      Specified by:
      getItem in interface net.minecraft.world.item.crafting.RecipeInput