-
-
Notifications
You must be signed in to change notification settings - Fork 21
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 #211 from refinedmods/develop
v2.0.0-milestone.2.2
- Loading branch information
Showing
130 changed files
with
2,887 additions
and
1,342 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE import-control PUBLIC | ||
"-//Checkstyle//DTD ImportControl Configuration 1.4//EN" | ||
"https://checkstyle.org/dtds/import_control_1_4.dtd"> | ||
<import-control pkg="com.refinedmods.refinedstorage2" strategyOnMismatch="allowed"> | ||
<disallow pkg="org.jetbrains.annotations"/> | ||
</import-control> |
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
15 changes: 14 additions & 1 deletion
15
...storage2-grid-api/src/main/java/com/refinedmods/refinedstorage2/api/grid/GridWatcher.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 |
---|---|---|
@@ -1,16 +1,29 @@ | ||
package com.refinedmods.refinedstorage2.api.grid; | ||
|
||
import com.refinedmods.refinedstorage2.api.resource.list.ResourceListOperationResult; | ||
import com.refinedmods.refinedstorage2.api.storage.tracked.TrackedResource; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
import org.apiguardian.api.API; | ||
|
||
/** | ||
* A grid listener. | ||
*/ | ||
@API(status = API.Status.STABLE, since = "2.0.0-milestone.1.0") | ||
public interface GridWatcher { | ||
public interface GridWatcher<T> { | ||
/** | ||
* Called when the activeness state of the grid has changed. | ||
* | ||
* @param newActive the new activeness state | ||
*/ | ||
void onActiveChanged(boolean newActive); | ||
|
||
/** | ||
* Called when a resource is changed. | ||
* | ||
* @param change the change | ||
* @param trackedResource the tracked resource, if present | ||
*/ | ||
void onChanged(ResourceListOperationResult<T> change, @Nullable TrackedResource trackedResource); | ||
} |
Oops, something went wrong.