Class PatternInventory

java.lang.Object
net.minecraft.world.SimpleContainer
com.refinedmods.refinedstorage.common.support.FilteredContainer
com.refinedmods.refinedstorage.common.autocrafting.PatternInventory
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.StackedContentsCompatible

public class PatternInventory extends FilteredContainer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Field Summary

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER
  • Constructor Summary

    Constructors
    Constructor
    Description
    PatternInventory(int patterns, Supplier<net.minecraft.world.level.Level> levelSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    int
     
    int
    getMaxStackSize(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.ItemStack
    removeItem(int slot, int amount)
     
    void
    setItem(int slot, net.minecraft.world.item.ItemStack stack)
     
    void
     

    Methods inherited from class com.refinedmods.refinedstorage.common.support.FilteredContainer

    canPlaceItem

    Methods inherited from class net.minecraft.world.SimpleContainer

    addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItemNoUpdate, removeItemType, removeListener, setChanged, stillValid, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.Container

    canTakeItem, countItem, hasAnyMatching, hasAnyOf, startOpen, stopOpen
  • Constructor Details

    • PatternInventory

      public PatternInventory(int patterns, Supplier<net.minecraft.world.level.Level> levelSupplier)
  • Method Details

    • setListener

      public void setListener(@Nullable PatternInventory.Listener listener)
    • removeItem

      public net.minecraft.world.item.ItemStack removeItem(int slot, int amount)
      Specified by:
      removeItem in interface net.minecraft.world.Container
      Overrides:
      removeItem in class net.minecraft.world.SimpleContainer
    • 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.SimpleContainer
    • getEnergyUsage

      public long getEnergyUsage()
    • getMaxStackSize

      public int getMaxStackSize()
    • getMaxStackSize

      public int getMaxStackSize(net.minecraft.world.item.ItemStack stack)