Interface IStorageMonitorableAccessor


public interface IStorageMonitorableAccessor
Allows storage buses to request access to another ME network so it can be used as a subnetwork. This interface is used in conjunction with capabilities, so when an object of this is obtained, it already knows about which face the access was requested from.

To get access to the capability for this, use @CapabilityInject with this interface as the argument to the annotation.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.fabricmc.fabric.api.lookup.v1.block.BlockApiLookup<IStorageMonitorableAccessor,net.minecraft.core.Direction>
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Field Details

    • SIDED

      static final net.fabricmc.fabric.api.lookup.v1.block.BlockApiLookup<IStorageMonitorableAccessor,net.minecraft.core.Direction> SIDED
  • Method Details

    • getInventory

      @Nullable MEStorage getInventory(IActionSource src)
      Returns:
      Null if the network cannot be accessed by the given action source (i.e. security doesn't permit it).