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
-
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
ConstructorsConstructorDescriptionPatternInventory(int patterns, Supplier<@Nullable net.minecraft.world.level.Level> levelSupplier) -
Method Summary
Modifier and TypeMethodDescriptionlongintintgetMaxStackSize(net.minecraft.world.item.ItemStack stack) voidvoidsetListener(@Nullable Runnable listener) Methods inherited from class FilteredContainer
canPlaceItemMethods inherited from class net.minecraft.world.SimpleContainer
addItem, canAddItem, clearContent, fillStackedContents, fromItemList, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, setItem, stillValid, storeAsItemList, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, getEntitiesWithContainerOpen, getSlot, hasAnyMatching, hasAnyOf, iterator, startOpen, stopOpenMethods inherited from interface Iterable
forEach, spliteratorMethods 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
-
setChanged
public void setChanged()- Specified by:
setChangedin interfacenet.minecraft.world.Container- Overrides:
setChangedin classnet.minecraft.world.SimpleContainer
-
getEnergyUsage
public long getEnergyUsage() -
getMaxStackSize
public int getMaxStackSize() -
getMaxStackSize
public int getMaxStackSize(net.minecraft.world.item.ItemStack stack)
-