Class CraftingRecipeWrapper

java.lang.Object
net.minecraft.world.inventory.CraftingContainer
info.u_team.u_team_core.inventory.CraftingRecipeWrapper
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.StackedContentsCompatible

public class CraftingRecipeWrapper extends net.minecraft.world.inventory.CraftingContainer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraftforge.items.IItemHandlerModifiable
     

    Fields inherited from interface net.minecraft.world.Container

    LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CraftingRecipeWrapper(net.minecraftforge.items.IItemHandlerModifiable inventory, int width, int height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPlaceItem(int slot, net.minecraft.world.item.ItemStack stack)
     
    void
     
    void
    fillStackedContents(net.minecraft.world.entity.player.StackedContents helper)
     
    int
     
    net.minecraft.world.item.ItemStack
    getItem(int slot)
     
    boolean
     
    net.minecraft.world.item.ItemStack
    removeItem(int slot, int count)
     
    net.minecraft.world.item.ItemStack
     
    void
    setItem(int slot, net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class net.minecraft.world.inventory.CraftingContainer

    getHeight, getWidth, setChanged, stillValid

    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.Container

    countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
  • Field Details

    • inventory

      protected final net.minecraftforge.items.IItemHandlerModifiable inventory
  • Constructor Details

    • CraftingRecipeWrapper

      public CraftingRecipeWrapper(net.minecraftforge.items.IItemHandlerModifiable inventory, int width, int height)
  • Method Details

    • getContainerSize

      public int getContainerSize()
      Specified by:
      getContainerSize in interface net.minecraft.world.Container
      Overrides:
      getContainerSize in class net.minecraft.world.inventory.CraftingContainer
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface net.minecraft.world.Container
      Overrides:
      isEmpty in class net.minecraft.world.inventory.CraftingContainer
    • getItem

      public net.minecraft.world.item.ItemStack getItem(int slot)
      Specified by:
      getItem in interface net.minecraft.world.Container
      Overrides:
      getItem in class net.minecraft.world.inventory.CraftingContainer
    • removeItemNoUpdate

      public net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot)
      Specified by:
      removeItemNoUpdate in interface net.minecraft.world.Container
      Overrides:
      removeItemNoUpdate in class net.minecraft.world.inventory.CraftingContainer
    • removeItem

      public net.minecraft.world.item.ItemStack removeItem(int slot, int count)
      Specified by:
      removeItem in interface net.minecraft.world.Container
      Overrides:
      removeItem in class net.minecraft.world.inventory.CraftingContainer
    • setItem

      public void setItem(int slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      setItem in interface net.minecraft.world.Container
      Overrides:
      setItem in class net.minecraft.world.inventory.CraftingContainer
    • clearContent

      public void clearContent()
      Specified by:
      clearContent in interface net.minecraft.world.Clearable
      Overrides:
      clearContent in class net.minecraft.world.inventory.CraftingContainer
    • canPlaceItem

      public boolean canPlaceItem(int slot, net.minecraft.world.item.ItemStack stack)
    • fillStackedContents

      public void fillStackedContents(net.minecraft.world.entity.player.StackedContents helper)
      Specified by:
      fillStackedContents in interface net.minecraft.world.inventory.StackedContentsCompatible
      Overrides:
      fillStackedContents in class net.minecraft.world.inventory.CraftingContainer