Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.0.0-milestone.4.10 #725

Merged
merged 37 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a743c31
Merge pull request #713 from refinedmods/main
raoulvdberge Nov 1, 2024
09b8410
chore: update translation Russian from crowdin
raoulvdberge Nov 1, 2024
a3efcaf
chore: update translation German from crowdin
raoulvdberge Nov 1, 2024
127f5a9
chore: update translation Turkish from crowdin
raoulvdberge Nov 1, 2024
e320778
chore: update translation Portuguese, Brazilian from crowdin
raoulvdberge Nov 1, 2024
2e094a8
chore: update translation French from crowdin
raoulvdberge Nov 1, 2024
48a6164
chore: update translation Spanish from crowdin
raoulvdberge Nov 1, 2024
59366cd
chore: update translation Danish from crowdin
raoulvdberge Nov 1, 2024
c1ed650
chore: update translation Hungarian from crowdin
raoulvdberge Nov 1, 2024
cef7954
chore: update translation Italian from crowdin
raoulvdberge Nov 1, 2024
b5c6e97
chore: update translation Japanese from crowdin
raoulvdberge Nov 1, 2024
dc594a0
chore: update translation Korean from crowdin
raoulvdberge Nov 1, 2024
a838171
chore: update translation Polish from crowdin
raoulvdberge Nov 1, 2024
4acede2
chore: update translation Swedish from crowdin
raoulvdberge Nov 1, 2024
c60a2bc
chore: update translation Ukrainian from crowdin
raoulvdberge Nov 1, 2024
6e2c54e
chore: update translation Chinese Simplified from crowdin
raoulvdberge Nov 1, 2024
01c3bcf
chore: update translation Chinese Traditional from crowdin
raoulvdberge Nov 1, 2024
7f7dd5e
chore: update translation Indonesian from crowdin
raoulvdberge Nov 1, 2024
2b058ba
Merge pull request #714 from refinedmods/crowdin-translations
raoulvdberge Nov 3, 2024
b8db042
feat: autocrafting monitor block
raoulvdberge Nov 2, 2024
91cb4e8
feat: introduce autocrafting status
raoulvdberge Nov 12, 2024
c59a526
feat: autocrafting monitor screen
raoulvdberge Nov 13, 2024
b4a185c
feat: autocrafting monitor from the server
raoulvdberge Nov 15, 2024
b74c948
feat: autocrafting monitor respects activeness
raoulvdberge Nov 16, 2024
e89b4bd
Merge pull request #718 from refinedmods/feat/GH-102/autocrafting-mon…
raoulvdberge Nov 16, 2024
615d2a2
chore: sonar issues
raoulvdberge Nov 16, 2024
d026dce
feat: auto selected mode is now generic
raoulvdberge Nov 16, 2024
a786a35
feat: the search icon now displays a tooltip
raoulvdberge Nov 16, 2024
3a5b99b
Merge pull request #719 from refinedmods/fix/NO-ISSUE/sonar
raoulvdberge Nov 16, 2024
6818308
refactor: autocrafting monitor now delegates to network
raoulvdberge Nov 17, 2024
4bb264d
feat: wireless autocrafting monitor
raoulvdberge Nov 17, 2024
5a4a840
Merge pull request #720 from refinedmods/feat/GH-101/wireless-autocra…
raoulvdberge Nov 17, 2024
790ede5
refactor: make crafting grid code reusable
raoulvdberge Nov 17, 2024
0f84346
Merge pull request #723 from refinedmods/feat/NO-ISSUE/crafting-grid-…
raoulvdberge Nov 23, 2024
ed72af8
fix: move quartz enriched iron and copper blocks to addon
raoulvdberge Nov 23, 2024
eb78b10
Merge pull request #724 from refinedmods/fix/NO-ISSUE/remove-block-of…
raoulvdberge Nov 24, 2024
8583fec
chore: prepare release v2.0.0-milestone.4.10
raoulvdberge Nov 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [2.0.0-milestone.4.10] - 2024-11-24

### Added

- Autocrafting Monitor
- Wireless Autocrafting Monitor
- Creative Wireless Autocrafting Monitor

### Changed

- The Autocrafting Monitor now has a sidebar with all tasks instead of using tabs.
- The auto-selected search box mode is now a global option used in the Autocrafter Manager as well.

### Removed

- Block of Quartz Enriched Iron (has been moved to addon mod)
- Block of Quartz Enriched Copper (has been moved to addon mod)

## [2.0.0-milestone.4.9] - 2024-11-01

### Added
Expand Down Expand Up @@ -796,7 +814,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- The Grid can now use smooth scrolling.
- The Grid now has syntax highlighting for the search query.

[Unreleased]: https://github.com/refinedmods/refinedstorage2/compare/v2.0.0-milestone.4.9...HEAD
[Unreleased]: https://github.com/refinedmods/refinedstorage2/compare/v2.0.0-milestone.4.10...HEAD

[2.0.0-milestone.4.10]: https://github.com/refinedmods/refinedstorage2/compare/v2.0.0-milestone.4.9...v2.0.0-milestone.4.10

[2.0.0-milestone.4.9]: https://github.com/refinedmods/refinedstorage2/compare/v2.0.0-milestone.4.8...v2.0.0-milestone.4.9

Expand Down
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ subprojects {
group = "com.refinedmods.refinedstorage"
}

/* publish all subprojects to mavenLocal */
subprojects {
apply(plugin = "maven-publish")

publishing {
repositories {
mavenLocal()
}
}
}

project.extensions.getByType<SonarExtension>().apply {
properties {
property(
Expand Down
1 change: 1 addition & 0 deletions config/checkstyle/checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<suppress checks="JavadocPackage" files="test[\\/].*.java"/>
<!-- Mod initializer can be longer due to initialization logic, config can be long too -->
<suppress checks="FileLength" files="(ModInitializer.*\.java|ConfigImpl\.java)"/>
<suppress checks="MethodCount" files="Items.java"/>
<!-- Shadow target contains underscore -->
<suppress checks="MemberName" files="ModelBakerImplMixin.java"/>
<suppress checks="HideUtilityClassConstructor" files="GridClearPacket.java"/>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

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) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.refinedmods.refinedstorage.api.autocrafting.preview;

import java.util.List;

import org.apiguardian.api.API;

@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.9")
public record Preview(PreviewType type, List<PreviewItem> items) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.refinedmods.refinedstorage.api.autocrafting.preview;

import com.refinedmods.refinedstorage.api.resource.ResourceKey;

import org.apiguardian.api.API;

@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.9")
public record PreviewItem(ResourceKey resource, long available, long missing, long toCraft) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.refinedmods.refinedstorage.api.autocrafting.preview;

import com.refinedmods.refinedstorage.api.resource.ResourceKey;

import java.util.Optional;

import org.apiguardian.api.API;

@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.9")
public interface PreviewProvider {
Optional<Preview> getPreview(ResourceKey resource, long amount);

boolean startTask(ResourceKey resource, long amount);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.refinedmods.refinedstorage.api.autocrafting.preview;

import org.apiguardian.api.API;

@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.9")
public enum PreviewType {
SUCCESS,
MISSING_RESOURCES
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@ParametersAreNonnullByDefault
@FieldsAndMethodsAreNonnullByDefault
package com.refinedmods.refinedstorage.api.autocrafting.preview;

import com.refinedmods.refinedstorage.api.core.FieldsAndMethodsAreNonnullByDefault;

import javax.annotation.ParametersAreNonnullByDefault;
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package com.refinedmods.refinedstorage.api.autocrafting.status;

import com.refinedmods.refinedstorage.api.autocrafting.TaskId;
import com.refinedmods.refinedstorage.api.resource.ResourceKey;

import java.util.List;

import org.apiguardian.api.API;

@API(status = API.Status.STABLE, since = "2.0.0-milestone.4.10")
public record TaskStatus(TaskInfo info, float percentageCompleted, List<Item> items) {
public record TaskInfo(TaskId id, ResourceKey resource, long amount, long startTime) {
}

public record Item(
ItemType type,
ResourceKey resource,
long stored,
long missing,
long processing,
long scheduled,
long crafting
) {
}

public enum ItemType {
NORMAL,
MACHINE_DOES_NOT_ACCEPT_RESOURCE,
NO_MACHINE_FOUND,
AUTOCRAFTER_IS_LOCKED
}
}
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);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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();

void testUpdate();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@ParametersAreNonnullByDefault
@FieldsAndMethodsAreNonnullByDefault
package com.refinedmods.refinedstorage.api.autocrafting.status;

import com.refinedmods.refinedstorage.api.core.FieldsAndMethodsAreNonnullByDefault;

import javax.annotation.ParametersAreNonnullByDefault;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.refinedmods.refinedstorage.api.resource.ResourceKey;

enum ResourceFixtures implements ResourceKey {
public enum ResourceFixtures implements ResourceKey {
A,
B,
C
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.refinedmods.refinedstorage.api.autocrafting.status;

import com.refinedmods.refinedstorage.api.autocrafting.ResourceFixtures;
import com.refinedmods.refinedstorage.api.autocrafting.TaskId;

import java.util.List;
import java.util.UUID;

import org.junit.jupiter.api.Test;

class TaskStatusTest {
@Test
void dummyTest() {
new TaskStatus(
new TaskStatus.TaskInfo(
new TaskId(UUID.randomUUID()),
ResourceFixtures.A,
0,
0
),
0.69F,
List.of(
new TaskStatus.Item(
TaskStatus.ItemType.NORMAL,
ResourceFixtures.A,
0,
0,
0,
0,
0
)
)
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@ParametersAreNonnullByDefault
@FieldsAndMethodsAreNonnullByDefault
package com.refinedmods.refinedstorage.api.autocrafting.status;

import com.refinedmods.refinedstorage.api.core.FieldsAndMethodsAreNonnullByDefault;

import javax.annotation.ParametersAreNonnullByDefault;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.refinedmods.refinedstorage.common.api.grid;

import com.refinedmods.refinedstorage.api.autocrafting.AutocraftingPreviewProvider;
import com.refinedmods.refinedstorage.api.autocrafting.preview.PreviewProvider;
import com.refinedmods.refinedstorage.api.grid.operations.GridOperations;
import com.refinedmods.refinedstorage.api.grid.watcher.GridWatcher;
import com.refinedmods.refinedstorage.api.storage.Actor;
Expand All @@ -16,7 +16,7 @@
import org.apiguardian.api.API;

@API(status = API.Status.STABLE, since = "2.0.0-milestone.3.0")
public interface Grid extends AutocraftingPreviewProvider {
public interface Grid extends PreviewProvider {
void addWatcher(GridWatcher watcher, Class<? extends Actor> actorType);

void removeWatcher(GridWatcher watcher);
Expand Down
Loading
Loading