Class RecipeWrapper

java.lang.Object
net.neoforged.neoforge.items.wrapper.RecipeWrapper
All Implemented Interfaces:
RecipeInput

@Deprecated(since="1.21.9", forRemoval=true) public class RecipeWrapper extends Object implements RecipeInput
Deprecated, for removal: This API element is subject to removal in a future version.
Implement RecipeInput directly instead.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final IItemHandler
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getItem(int slot)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the stack in this slot.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    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

    • inv

      protected final IItemHandler inv
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • RecipeWrapper

      public RecipeWrapper(IItemHandler inv)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • size

      public int size()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the size of this inventory.
      Specified by:
      size in interface RecipeInput
    • getItem

      public ItemStack getItem(int slot)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 RecipeInput