Interface GraphNetworkComponent
- All Superinterfaces:
NetworkComponent
@API(status=STABLE,
since="2.0.0-milestone.3.2")
public interface GraphNetworkComponent
extends NetworkComponent
Responsible for managing the connected network nodes in a network.
-
Method Summary
Modifier and TypeMethodDescriptiongetContainer(Object key) Retrieves a container by key, defined inNetworkNodeContainer.createKey().<T> Set<T> getContainers(Class<T> clazz) Retrieves containers by container type.Methods inherited from interface com.refinedmods.refinedstorage.api.network.NetworkComponent
onContainerAdded, onContainerRemoved, onNetworkMergedWith, onNetworkRemoved, onNetworkSplit
-
Method Details
-
getContainers
Set<NetworkNodeContainer> getContainers()- Returns:
- all the containers currently present in this graph
-
getContainers
Retrieves containers by container type. It can be queried by exact class type or by interface type.- Type Parameters:
T- the container class type- Parameters:
clazz- the container class type- Returns:
- the containers matching the type
-
getContainer
Retrieves a container by key, defined inNetworkNodeContainer.createKey().- Parameters:
key- the key- Returns:
- the container, or null if not found
-