From 6d88fbbee7836ef7bf5941b75c92a6349dc2845c Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Sat, 6 Jul 2024 16:29:08 +0200 Subject: [PATCH] feat: port to minecraft 1.21 --- .github/ISSUE_TEMPLATE/bug-report.yml | 2 +- .github/workflows/build.yml | 2 +- .github/workflows/draft-release.yml | 2 +- .../issue-for-unsupported-version.yml | 2 +- .github/workflows/publish-release.yml | 2 +- .github/workflows/resolved-issue-locking.yml | 2 +- .github/workflows/validate-branch-name.yml | 2 +- .github/workflows/validate-changelog.yml | 2 +- .../workflows/validate-commit-messages.yml | 2 +- .gitignore | 1 + CHANGELOG.md | 24 ++++-- config/intellij-code-style.xml | 4 +- gradle.properties | 4 +- gradle/wrapper/gradle-wrapper.properties | 2 +- .../build.gradle | 2 +- .../refinedstorage/emi/common/Common.java | 7 +- .../emi/common/EmiDragDropHandlerImpl.java | 18 ++--- .../emi/common/EmiExclusionAreaImpl.java | 3 +- .../emi/common/EmiGridSynchronizer.java | 3 +- .../emi/common/EmiRecipeHandlerImpl.java | 9 ++- .../EmiRecipeModIngredientConverter.java | 15 ++-- .../emi/common/GridEmiStackProvider.java | 9 ++- .../emi/common/RefinedStorageEmiPlugin.java | 3 +- .../emi/common/ResourceEmiStackProvider.java | 7 +- .../assets/emi/aliases/refinedstorage.json | 8 ++ .../emi/recipe/defaults/refinedstorage.json | 74 +++++++++++++++++++ .../refinedstorage_emi_integration.json | 73 ------------------ .../lang/en_us.json | 3 +- .../.gitignore | 1 - .../build.gradle | 4 +- .../emi/fabric/EmiRefinedStoragePlugin.java | 4 +- .../src/main/resources/fabric.mod.json | 7 +- .../.gitignore | 1 - .../build.gradle | 8 +- .../emi/forge/ModInitializer.java | 2 +- .../emi/forge/package-info.java | 0 .../resources/META-INF/neoforge.mods.toml | 6 +- .../src/main/resources/pack.mcmeta | 0 settings.gradle | 4 +- 39 files changed, 174 insertions(+), 150 deletions(-) create mode 100644 refinedstorage-emi-integration-common/src/main/resources/assets/emi/aliases/refinedstorage.json create mode 100644 refinedstorage-emi-integration-common/src/main/resources/assets/emi/recipe/defaults/refinedstorage.json delete mode 100644 refinedstorage-emi-integration-common/src/main/resources/assets/emi/recipe/defaults/refinedstorage_emi_integration.json delete mode 100644 refinedstorage-emi-integration-fabric/.gitignore delete mode 100644 refinedstorage-emi-integration-forge/.gitignore rename {refinedstorage-emi-integration-forge => refinedstorage-emi-integration-neoforge}/build.gradle (59%) rename {refinedstorage-emi-integration-forge => refinedstorage-emi-integration-neoforge}/src/main/java/com/refinedmods/refinedstorage/emi/forge/ModInitializer.java (91%) rename {refinedstorage-emi-integration-forge => refinedstorage-emi-integration-neoforge}/src/main/java/com/refinedmods/refinedstorage/emi/forge/package-info.java (100%) rename refinedstorage-emi-integration-forge/src/main/resources/META-INF/mods.toml => refinedstorage-emi-integration-neoforge/src/main/resources/META-INF/neoforge.mods.toml (79%) rename {refinedstorage-emi-integration-forge => refinedstorage-emi-integration-neoforge}/src/main/resources/pack.mcmeta (100%) diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 38c0392..93e6ff3 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -34,7 +34,7 @@ body: description: | If your Minecraft version isn't listed here, it means that it's no longer supported. In that case, don't create an issue. options: - - Minecraft 1.20.4 + - Minecraft 1.21 validations: required: true - type: input diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2a7493..1ee8f8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ on: types: [ opened, synchronize, reopened ] jobs: build: - uses: refinedmods/refinedarchitect/.github/workflows/build.yml@v0.13.4 + uses: refinedmods/refinedarchitect/.github/workflows/build.yml@v0.15.2 with: mutation-testing: false secrets: inherit diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 5ea1d94..f731a43 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -17,7 +17,7 @@ on: type: string jobs: draft: - uses: refinedmods/refinedarchitect/.github/workflows/draft-release.yml@v0.13.4 + uses: refinedmods/refinedarchitect/.github/workflows/draft-release.yml@v0.15.2 with: release-type: ${{ inputs.release-type }} version-number-override: ${{ inputs.version-number-override }} diff --git a/.github/workflows/issue-for-unsupported-version.yml b/.github/workflows/issue-for-unsupported-version.yml index 9f9ee90..7eace9c 100644 --- a/.github/workflows/issue-for-unsupported-version.yml +++ b/.github/workflows/issue-for-unsupported-version.yml @@ -4,4 +4,4 @@ on: types: [ labeled, unlabeled, reopened ] jobs: unsupported-labeler: - uses: refinedmods/refinedarchitect/.github/workflows/issue-for-unsupported-version.yml@v0.13.4 \ No newline at end of file + uses: refinedmods/refinedarchitect/.github/workflows/issue-for-unsupported-version.yml@v0.15.2 \ No newline at end of file diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index fc716a3..578b217 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -7,7 +7,7 @@ on: - closed jobs: publish-release: - uses: refinedmods/refinedarchitect/.github/workflows/publish-release.yml@v0.13.4 + uses: refinedmods/refinedarchitect/.github/workflows/publish-release.yml@v0.15.2 secrets: inherit with: project-name: 'Refined Storage - EMI Integration' diff --git a/.github/workflows/resolved-issue-locking.yml b/.github/workflows/resolved-issue-locking.yml index 16b1cf9..f0098dd 100644 --- a/.github/workflows/resolved-issue-locking.yml +++ b/.github/workflows/resolved-issue-locking.yml @@ -4,4 +4,4 @@ on: - cron: '0 0 * * *' jobs: lock: - uses: refinedmods/refinedarchitect/.github/workflows/resolved-issue-locking.yml@v0.13.4 \ No newline at end of file + uses: refinedmods/refinedarchitect/.github/workflows/resolved-issue-locking.yml@v0.15.2 \ No newline at end of file diff --git a/.github/workflows/validate-branch-name.yml b/.github/workflows/validate-branch-name.yml index b2ddb77..a5d3c1b 100644 --- a/.github/workflows/validate-branch-name.yml +++ b/.github/workflows/validate-branch-name.yml @@ -2,4 +2,4 @@ name: Validate branch name on: [ pull_request ] jobs: validate-branch-name: - uses: refinedmods/refinedarchitect/.github/workflows/validate-branch-name.yml@v0.13.4 \ No newline at end of file + uses: refinedmods/refinedarchitect/.github/workflows/validate-branch-name.yml@v0.15.2 \ No newline at end of file diff --git a/.github/workflows/validate-changelog.yml b/.github/workflows/validate-changelog.yml index 2adc54f..8822e7e 100644 --- a/.github/workflows/validate-changelog.yml +++ b/.github/workflows/validate-changelog.yml @@ -4,4 +4,4 @@ on: types: [ opened, synchronize, reopened, ready_for_review, labeled, unlabeled ] jobs: validate-changelog: - uses: refinedmods/refinedarchitect/.github/workflows/validate-changelog.yml@v0.13.4 \ No newline at end of file + uses: refinedmods/refinedarchitect/.github/workflows/validate-changelog.yml@v0.15.2 \ No newline at end of file diff --git a/.github/workflows/validate-commit-messages.yml b/.github/workflows/validate-commit-messages.yml index 8ef06cd..194a3e8 100644 --- a/.github/workflows/validate-commit-messages.yml +++ b/.github/workflows/validate-commit-messages.yml @@ -2,4 +2,4 @@ name: Validate commit messages on: [ pull_request ] jobs: validate-commit-messages: - uses: refinedmods/refinedarchitect/.github/workflows/validate-commit-messages.yml@v0.13.4 \ No newline at end of file + uses: refinedmods/refinedarchitect/.github/workflows/validate-commit-messages.yml@v0.15.2 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 924b02b..8c2b9ee 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ out/ /bin/ logs/ .cache/ +run/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f0c3eb..0c598b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,31 +7,39 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added + +- Search alias for the old name of the Disk Interface. + +### Fixed + +- Support for Refined Storage v2.0.0-milestone.4.2. + ## [0.2.1] - 2024-06-28 ### Fixed -- Support for Refined Storage v2.0.0-milestone.3.14. +- Support for Refined Storage v2.0.0-milestone.3.14. ## [0.2.0] - 2024-06-20 ### Added -- Recipe defaults. +- Recipe defaults. ### Fixed -- Recipe transfer not working. +- Recipe transfer not working. ## [0.1.0] - 2024-06-20 ### Added -- Support for EMI exclusion zones. -- Support for EMI ghost ingredient dragging. -- Support for using the R/U keys on Grid slots and filtering slots. -- Recipe transfer integration for the Crafting Grid. -- Grid / EMI search box synchronization options. +- Support for EMI exclusion zones. +- Support for EMI ghost ingredient dragging. +- Support for using the R/U keys on Grid slots and filtering slots. +- Recipe transfer integration for the Crafting Grid. +- Grid / EMI search box synchronization options. [Unreleased]: https://github.com/refinedmods/refinedstorage-emi-integration/compare/v0.2.1...HEAD diff --git a/config/intellij-code-style.xml b/config/intellij-code-style.xml index f9d7a95..c4e6ca3 100644 --- a/config/intellij-code-style.xml +++ b/config/intellij-code-style.xml @@ -1,7 +1,7 @@ -