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. Experimental feature, we reserve the right to remove or change it without further notice. The transfer API is a complex addition, and we want to be able to correct possible design mistakes.
- All Implemented Interfaces:
Iterable<StorageView<T>>
,SlottedStorage<T>
,Storage<T>
@Experimental
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
exactView, extract, getVersion, insert, iterator, nonEmptyIterator, nonEmptyViews, simulateExtract, simulateInsert, 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>>
-