Applied-Energistics-2-tiler.../src/api/java/appeng/api/storage/IStorageMonitorableAccessor.java
shartte b977ee89ee Remove External Storage Handler (#2417) (#2508)
* Implemented an adapter for IItemHandler so it can be used by the Storage Bus.
* Added update hook for inject/extract to ItemHandlerAdapter.
* Implemented ItemHandler and FluidHandler capabilities for the condenser, as replacement for the Void Inventories.
* Removed external storage handler, added capability-based way of accessing a monitorable ME network via the storage bus. Removed special case inventories for the matter condenser.
* Implemented InventoryAdaptor for IItemHandler. This also now fixes molecular assemblers interaction with part interfaces.
2016-10-26 22:58:23 +02:00

27 lines
774 B
Java

package appeng.api.storage;
import javax.annotation.Nullable;
import appeng.api.networking.security.BaseActionSource;
/**
* 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.
* <p/>
* To get access to the capability for this, use @CapabilityInject with this interface as the argument
* to the annotation.
*/
public interface IStorageMonitorableAccessor
{
/**
* @return Null if the network cannot be accessed by the given action source (i.e. security doesn't permit it).
*/
@Nullable
IStorageMonitorable getInventory( BaseActionSource src );
}