Interface SlotCollection
- All Known Subinterfaces:
ContainerComponent.Mutable<T>
- All Known Implementing Classes:
BundleContents.Mutable, ChargedProjectiles.Mutable, ContainerComponentManipulator.ComponentSlotCollection, GrowableMutableContainer, ItemContainerContents.Mutable, SimpleMutableContainer, SlotCollection.Filtered, SlotCollection.FlatMapped, SlotCollection.Limited
public interface SlotCollection
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final record -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SlotCollectionconcat(List<? extends SlotCollection> terms) static SlotCollectionconcat(SlotCollection first, SlotCollection second) default SlotCollectiondefault SlotCollectionflatMap(Function<ItemStack, ? extends SlotCollection> mapper) default SlotCollectionlimit(int limit) default voidmodifySlots(Consumer<? super SlotAccess> consumer) voidmodifySlots(Consumer<? super SlotAccess> consumer, SlotSelector slotSelector) static SlotCollectionof(Collection<? extends SlotAccess> slots) static SlotCollectionof(SlotAccess slotAccess) default intreplaceSlotItems(ItemProvider items) intreplaceSlotItems(ItemProvider items, SlotSelector slotSelector) intsize()
-
Field Details
-
EMPTY
-
-
Method Details
-
itemCopies
-
size
int size() -
replaceSlotItems
-
replaceSlotItems
-
modifySlots
-
modifySlots
-
filter
-
flatMap
-
limit
-
of
-
of
-
concat
-
concat
-