Class CombinedSlottedStorage<T,S extends SlottedStorage<T>>
java.lang.Object
net.fabricmc.fabric.api.transfer.v1.storage.base.CombinedStorage<T,S>
net.fabricmc.fabric.api.transfer.v1.storage.base.CombinedSlottedStorage<T,S>
- Type Parameters:
T
- The type of the stored resources.S
- The class of every part.? extends Storage<T>
can be used if the parts are of different types.
- All Implemented Interfaces:
Iterable<StorageView<T>>
,SlottedStorage<T>
,Storage<T>
public class CombinedSlottedStorage<T,S extends SlottedStorage<T>>
extends CombinedStorage<T,S>
implements SlottedStorage<T>
-
Field Summary
Fields inherited from class net.fabricmc.fabric.api.transfer.v1.storage.base.CombinedStorage
parts
-
Constructor Summary
-
Method Summary
Methods inherited from class net.fabricmc.fabric.api.transfer.v1.storage.base.CombinedStorage
extract, insert, iterator, supportsExtraction, supportsInsertion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.SlottedStorage
getSlots
Methods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.Storage
extract, getVersion, insert, iterator, nonEmptyIterator, nonEmptyViews, supportsExtraction, supportsInsertion
-
Constructor Details
-
CombinedSlottedStorage
-
-
Method Details
-
getSlotCount
public int getSlotCount()Description copied from interface:SlottedStorage
Retrieve the number of slots in this storage.- Specified by:
getSlotCount
in interfaceSlottedStorage<T>
-
getSlot
Description copied from interface:SlottedStorage
Retrieve a specific slot of this storage.- Specified by:
getSlot
in interfaceSlottedStorage<T>
-
toString
- Overrides:
toString
in classCombinedStorage<T,
S extends SlottedStorage<T>>
-