Class DummyCraftingContainer

java.lang.Object
net.minecraft.world.inventory.TransientCraftingContainer
com.simibubi.create.foundation.recipe.DummyCraftingContainer
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.CraftingContainer, net.minecraft.world.inventory.StackedContentsCompatible

public class DummyCraftingContainer extends net.minecraft.world.inventory.TransientCraftingContainer
  • Field Summary

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER
  • Constructor Summary

    Constructors
    Constructor
    Description
    DummyCraftingContainer(net.neoforged.neoforge.items.IItemHandler itemHandler, int[] extractedItemsFromSlot)
     
  • Method Summary

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

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

    getHeight, getItems, 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

    canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen

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

    asCraftInput, asPositionedCraftInput
  • Constructor Details

    • DummyCraftingContainer

      public DummyCraftingContainer(net.neoforged.neoforge.items.IItemHandler itemHandler, int[] extractedItemsFromSlot)
  • Method Details

    • getContainerSize

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

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

      @NotNull public @NotNull 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.TransientCraftingContainer
    • removeItemNoUpdate

      @NotNull public @NotNull 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.TransientCraftingContainer
    • removeItem

      @NotNull public @NotNull 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.TransientCraftingContainer
    • setItem

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

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

      public void fillStackedContents(@NotNull @NotNull 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.TransientCraftingContainer