-
-
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.
feat: autocrafting monitor from the server
- Loading branch information
1 parent
c59a526
commit b4a185c
Showing
45 changed files
with
924 additions
and
598 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...utocrafting-api/src/main/java/com/refinedmods/refinedstorage/api/autocrafting/TaskId.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,9 @@ | ||
package com.refinedmods.refinedstorage.api.autocrafting; | ||
|
||
import java.util.UUID; | ||
|
||
import org.apiguardian.api.API; | ||
|
||
@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.10") | ||
public record TaskId(UUID id) { | ||
} |
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
14 changes: 14 additions & 0 deletions
14
.../main/java/com/refinedmods/refinedstorage/api/autocrafting/status/TaskStatusListener.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,14 @@ | ||
package com.refinedmods.refinedstorage.api.autocrafting.status; | ||
|
||
import com.refinedmods.refinedstorage.api.autocrafting.TaskId; | ||
|
||
import org.apiguardian.api.API; | ||
|
||
@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.10") | ||
public interface TaskStatusListener { | ||
void taskStatusChanged(TaskStatus status); | ||
|
||
void taskRemoved(TaskId id); | ||
|
||
void taskAdded(TaskStatus status); | ||
} |
20 changes: 20 additions & 0 deletions
20
.../main/java/com/refinedmods/refinedstorage/api/autocrafting/status/TaskStatusProvider.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,20 @@ | ||
package com.refinedmods.refinedstorage.api.autocrafting.status; | ||
|
||
import com.refinedmods.refinedstorage.api.autocrafting.TaskId; | ||
|
||
import java.util.List; | ||
|
||
import org.apiguardian.api.API; | ||
|
||
@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.10") | ||
public interface TaskStatusProvider { | ||
List<TaskStatus> getStatuses(); | ||
|
||
void addListener(TaskStatusListener listener); | ||
|
||
void removeListener(TaskStatusListener listener); | ||
|
||
void cancel(TaskId taskId); | ||
|
||
void cancelAll(); | ||
} |
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
Oops, something went wrong.