Class FuzzyGridOperations

java.lang.Object
com.refinedmods.refinedstorage.common.grid.FuzzyGridOperations
All Implemented Interfaces:
GridOperations

public class FuzzyGridOperations extends Object implements GridOperations
  • 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: GridOperations
      Tries to move a resource from the network storage to the destination. The amount being extracted depends on the extraction mode.
      Specified by:
      extract in interface GridOperations
      Parameters:
      resource - the resource
      extractMode - the extract mode
      destination - the destination
    • insert

      public boolean insert(ResourceKey resource, GridInsertMode insertMode, ExtractableStorage source)
      Description copied from interface: GridOperations
      Tries to move a resource from the source to the network storage. The amount being inserted depends on the insert mode.
      Specified by:
      insert in interface GridOperations
      Parameters:
      resource - the resource
      insertMode - the insertion mode
      source - the source