Class PriorityStorage
java.lang.Object
com.refinedmods.refinedstorage.api.storage.AbstractProxyStorage
com.refinedmods.refinedstorage.api.storage.composite.PriorityStorage
- All Implemented Interfaces:
PriorityProvider,ExtractableStorage,InsertableStorage,Storage,StorageView
@API(status=STABLE,
since="2.0.0-milestone.3.6")
public class PriorityStorage
extends AbstractProxyStorage
implements PriorityProvider
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.api.storage.AbstractProxyStorage
delegate -
Method Summary
Modifier and TypeMethodDescriptionintThe priority, higher priority storages will be extracted from first.intThe priority, higher priority storages will be inserted into first.static PriorityStoragevoidsetExtractPriority(int extractPriority) voidsetInsertPriority(int insertPriority) Methods inherited from class com.refinedmods.refinedstorage.api.storage.AbstractProxyStorage
extract, getAll, getStored, insert
-
Method Details
-
of
-
setInsertPriority
public void setInsertPriority(int insertPriority) -
setExtractPriority
public void setExtractPriority(int extractPriority) -
getInsertPriority
public int getInsertPriority()Description copied from interface:PriorityProviderThe priority, higher priority storages will be inserted into first.- Specified by:
getInsertPriorityin interfacePriorityProvider- Returns:
- the priority
-
getExtractPriority
public int getExtractPriority()Description copied from interface:PriorityProviderThe priority, higher priority storages will be extracted from first.- Specified by:
getExtractPriorityin interfacePriorityProvider- Returns:
- the priority
-