Class GrowableMutableContainer<T>
java.lang.Object
net.minecraft.world.item.component.SimpleMutableContainer<T>
net.minecraft.world.item.component.GrowableMutableContainer<T>
- All Implemented Interfaces:
ContainerComponent.Mutable<T>, SlotCollection
- Direct Known Subclasses:
BundleContents.Mutable, ChargedProjectiles.Mutable, ItemContainerContents.Mutable
-
Nested Class Summary
Nested classes/interfaces inherited from interface SlotCollection
SlotCollection.Filtered, SlotCollection.FlatMapped, SlotCollection.Limited -
Field Summary
Fields inherited from class SimpleMutableContainer
itemsFields inherited from interface SlotCollection
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddSlotWithItem(ItemProvider newItems) abstract booleanintreplaceSlotItems(ItemProvider newItems, SlotSelector slotSelector) Methods inherited from class SimpleMutableContainer
itemCopies, modifySlots, setItem, sizeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerComponent.Mutable
toImmutableMethods inherited from interface SlotCollection
filter, flatMap, limit, modifySlots, replaceSlotItems
-
Constructor Details
-
GrowableMutableContainer
-
-
Method Details
-
canInsertNewSlots
public abstract boolean canInsertNewSlots() -
replaceSlotItems
- Specified by:
replaceSlotItemsin interfaceSlotCollection- Overrides:
replaceSlotItemsin classSimpleMutableContainer<T>
-
addSlotWithItem
-