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 TypeMethodDescriptionint
The priority, higher priority storages will be extracted from first.int
The priority, higher priority storages will be inserted into first.static PriorityStorage
void
setExtractPriority
(int extractPriority) void
setInsertPriority
(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:PriorityProvider
The priority, higher priority storages will be inserted into first.- Specified by:
getInsertPriority
in interfacePriorityProvider
- Returns:
- the priority
-
getExtractPriority
public int getExtractPriority()Description copied from interface:PriorityProvider
The priority, higher priority storages will be extracted from first.- Specified by:
getExtractPriority
in interfacePriorityProvider
- Returns:
- the priority
-