Class FuzzyGridOperations
java.lang.Object
com.refinedmods.refinedstorage.common.grid.FuzzyGridOperations
- All Implemented Interfaces:
GridOperations
-
Constructor Summary
ConstructorsConstructorDescriptionFuzzyGridOperations(net.minecraft.server.level.ServerPlayer player, FuzzyRootStorage fuzzyRootStorage, GridOperations delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanextract(ResourceKey resource, GridExtractMode extractMode, InsertableStorage destination) Tries to move a resource from the network storage to the destination.booleaninsert(ResourceKey resource, GridInsertMode insertMode, ExtractableStorage source) Tries to move a resource from the source to the network storage.
-
Constructor Details
-
FuzzyGridOperations
public FuzzyGridOperations(net.minecraft.server.level.ServerPlayer player, FuzzyRootStorage fuzzyRootStorage, GridOperations delegate)
-
-
Method Details
-
extract
public boolean extract(ResourceKey resource, GridExtractMode extractMode, InsertableStorage destination) Description copied from interface:GridOperationsTries to move a resource from the network storage to the destination. The amount being extracted depends on the extraction mode.- Specified by:
extractin interfaceGridOperations- Parameters:
resource- the resourceextractMode- the extract modedestination- the destination
-
insert
Description copied from interface:GridOperationsTries to move a resource from the source to the network storage. The amount being inserted depends on the insert mode.- Specified by:
insertin interfaceGridOperations- Parameters:
resource- the resourceinsertMode- the insertion modesource- the source
-