Class ExportedResourcesContainer

java.lang.Object
com.refinedmods.refinedstorage.common.support.resource.ResourceContainerImpl
com.refinedmods.refinedstorage.common.iface.ExportedResourcesContainer
All Implemented Interfaces:
com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState, ResourceContainer

public class ExportedResourcesContainer extends ResourceContainerImpl implements com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
  • Method Details

    • getSlots

      public int getSlots()
      Specified by:
      getSlots in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • expandExportCandidates

      public Collection<ResourceKey> expandExportCandidates(RootStorage rootStorage, ResourceKey resource)
      Specified by:
      expandExportCandidates in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • isExportedResourceValid

      public boolean isExportedResourceValid(ResourceKey want, ResourceKey got)
      Specified by:
      isExportedResourceValid in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • getRequestedResource

      @Nullable public ResourceKey getRequestedResource(int slotIndex)
      Specified by:
      getRequestedResource in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • getRequestedAmount

      public long getRequestedAmount(int slotIndex)
      Specified by:
      getRequestedAmount in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • getExportedResource

      @Nullable public ResourceKey getExportedResource(int slotIndex)
      Specified by:
      getExportedResource in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • getExportedAmount

      public long getExportedAmount(int slotIndex)
      Specified by:
      getExportedAmount in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • setExportSlot

      public void setExportSlot(int slotIndex, ResourceKey resource, long amount)
      Specified by:
      setExportSlot in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • shrinkExportedAmount

      public void shrinkExportedAmount(int slotIndex, long amount)
      Specified by:
      shrinkExportedAmount in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState
    • growExportedAmount

      public void growExportedAmount(int slotIndex, long amount)
      Specified by:
      growExportedAmount in interface com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceExportState