Class SimpleMutableContainer<T>
java.lang.Object
net.minecraft.world.item.component.SimpleMutableContainer<T>
- All Implemented Interfaces:
ContainerComponent.Mutable<T>, SlotCollection
- Direct Known Subclasses:
GrowableMutableContainer
public abstract class SimpleMutableContainer<T>
extends Object
implements ContainerComponent.Mutable<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface SlotCollection
SlotCollection.Filtered, SlotCollection.FlatMapped, SlotCollection.Limited -
Field Summary
FieldsFields inherited from interface SlotCollection
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmodifySlots(Consumer<? super SlotAccess> consumer, SlotSelector slotSelector) intreplaceSlotItems(ItemProvider newItems, SlotSelector slotSelector) protected booleanintsize()Methods 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
-
Field Details
-
items
-
-
Constructor Details
-
SimpleMutableContainer
-
-
Method Details
-
itemCopies
- Specified by:
itemCopiesin interfaceSlotCollection
-
size
public int size()- Specified by:
sizein interfaceSlotCollection
-
replaceSlotItems
- Specified by:
replaceSlotItemsin interfaceSlotCollection
-
modifySlots
- Specified by:
modifySlotsin interfaceSlotCollection
-
setItem
-