-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from refinedmods/release/2.0.0-milestone.3.2
Release v2.0.0-milestone.3.2
- Loading branch information
Showing
1,090 changed files
with
9,864 additions
and
4,460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...ain/java/com/refinedmods/refinedstorage2/api/network/component/GraphNetworkComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.refinedmods.refinedstorage2.api.network.component; | ||
|
||
import com.refinedmods.refinedstorage2.api.network.node.container.NetworkNodeContainer; | ||
|
||
import java.util.Set; | ||
import javax.annotation.Nullable; | ||
|
||
import org.apiguardian.api.API; | ||
|
||
/** | ||
* Responsible for managing the connected network nodes in a network. | ||
*/ | ||
@API(status = API.Status.STABLE, since = "2.0.0-milestone.3.2") | ||
public interface GraphNetworkComponent extends NetworkComponent { | ||
/** | ||
* @return all the containers currently present in this graph | ||
*/ | ||
Set<NetworkNodeContainer> getContainers(); | ||
|
||
/** | ||
* Retrieves containers by container type. | ||
* It can be queried by exact class type or by interface type. | ||
* | ||
* @param clazz the container class type | ||
* @param <T> the container class type | ||
* @return the containers matching the type | ||
*/ | ||
<T> Set<T> getContainers(Class<T> clazz); | ||
|
||
/** | ||
* Retrieves a container by key, defined in {@link NetworkNodeContainer#createKey()}. | ||
* | ||
* @param key the key | ||
* @return the container, or null if not found | ||
*/ | ||
@Nullable | ||
NetworkNodeContainer getContainer(Object key); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t/java/com/refinedmods/refinedstorage2/api/network/impl/UpdateNetworkBuilderImplTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.