Class PatternInventory

java.lang.Object
net.minecraft.world.SimpleContainer
com.refinedmods.refinedstorage.common.support.FilteredContainer
com.refinedmods.refinedstorage.common.autocrafting.PatternInventory
All Implemented Interfaces:
Iterable<net.minecraft.world.item.ItemStack>, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.entity.SlotProvider, net.minecraft.world.inventory.StackedContentsCompatible

public class PatternInventory extends FilteredContainer
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.Container

    net.minecraft.world.Container.ContainerIterator
  • Field Summary

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    long
     
    int
     
    int
    getMaxStackSize(net.minecraft.world.item.ItemStack stack)
     
    void
     
    void
    setListener(@Nullable Runnable listener)
     

    Methods inherited from class FilteredContainer

    canPlaceItem

    Methods inherited from class net.minecraft.world.SimpleContainer

    addItem, canAddItem, clearContent, fillStackedContents, fromItemList, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, setItem, stillValid, storeAsItemList, toString

    Methods inherited from class Object

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

    Methods inherited from interface net.minecraft.world.Container

    canTakeItem, countItem, getEntitiesWithContainerOpen, getSlot, hasAnyMatching, hasAnyOf, iterator, startOpen, stopOpen

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods inherited from interface net.minecraft.world.entity.SlotProvider

    getSlotsFromRange
  • Constructor Details

    • PatternInventory

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

    • setListener

      public void setListener(@Nullable Runnable listener)
    • setChanged

      public void setChanged()
      Specified by:
      setChanged in interface net.minecraft.world.Container
      Overrides:
      setChanged in class net.minecraft.world.SimpleContainer
    • getEnergyUsage

      public long getEnergyUsage()
    • getMaxStackSize

      public int getMaxStackSize()
    • getMaxStackSize

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