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 CombinedStorage
parts -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CombinedStorage
extract, insert, iterator, supportsExtraction, supportsInsertionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface SlottedStorage
getSlotsMethods inherited from interface Storage
extract, getVersion, insert, iterator, nonEmptyIterator, nonEmptyViews, 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>>
-