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
Constructors -
Method Summary
Methods inherited from class net.fabricmc.fabric.api.transfer.v1.storage.base.CombinedStorage
extract, insert, iterator, supportsExtraction, supportsInsertionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.fabricmc.fabric.api.transfer.v1.storage.SlottedStorage
getSlotsMethods 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:SlottedStorageRetrieve the number of slots in this storage.- Specified by:
getSlotCountin interfaceSlottedStorage<T>
-
getSlot
Description copied from interface:SlottedStorageRetrieve a specific slot of this storage.- Specified by:
getSlotin interfaceSlottedStorage<T>
-
toString
- Overrides:
toStringin classCombinedStorage<T,S extends SlottedStorage<T>>
-