Class IngredientComponentStorageSlottedInsertProxy<T,M>
java.lang.Object
org.cyclops.integratedcrafting.ingredient.storage.IngredientComponentStorageSlottedInsertProxy<T,M>
- All Implemented Interfaces:
Iterable<T>,org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<T,,M> org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorageSlotted<T,M>
public class IngredientComponentStorageSlottedInsertProxy<T,M>
extends Object
implements org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorageSlotted<T,M>
An ingredient component storage that only accepts insertions,
and immediately forwards all insertions to another storage.
Externally, this storage is exposed as inventory with a single empty slot.
-
Constructor Summary
ConstructorsConstructorDescriptionIngredientComponentStorageSlottedInsertProxy(org.cyclops.commoncapabilities.api.ingredient.storage.IIngredientComponentStorage<T, M> storage) -
Method Summary
Modifier and TypeMethodDescriptionextract(int slot, long quantity, boolean simulate) extract(long quantity, boolean simulate) longlonggetMaxQuantity(int slot) getSlotContents(int slot) intgetSlots()iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IngredientComponentStorageSlottedInsertProxy
-
-
Method Details
-
getSlots
public int getSlots() -
getSlotContents
-
getMaxQuantity
public long getMaxQuantity(int slot) -
insert
-
extract
-
getComponent
-
iterator
-
iterator
-
getMaxQuantity
public long getMaxQuantity() -
insert
-
extract
-
extract
-