Class FilteredContainer

java.lang.Object
net.minecraft.world.SimpleContainer
com.refinedmods.refinedstorage.common.support.FilteredContainer
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.StackedContentsCompatible
Direct Known Subclasses:
DiskInventory

public class FilteredContainer extends net.minecraft.world.SimpleContainer
  • Field Summary

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER
  • Constructor Summary

    Constructors
    Constructor
    Description
    FilteredContainer(int size, Predicate<net.minecraft.world.item.ItemStack> filter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPlaceItem(int slot, net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class net.minecraft.world.SimpleContainer

    addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setChanged, setItem, 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, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
  • Constructor Details

    • FilteredContainer

      public FilteredContainer(int size, Predicate<net.minecraft.world.item.ItemStack> filter)
  • Method Details

    • canPlaceItem

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