diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 60e28f8..7f28c31 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 b72865f..d390913 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 - REI 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 6d8d3ba..6d49f98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.2.0] - 2024-07-06 + +### Fixed + +- Support for Refined Storage v2.0.0-milestone.4.2. + ## [0.1.4] - 2024-06-28 ### Fixed @@ -42,7 +48,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Support for REI collapsable entries. - Grid / REI search box synchronization options. -[Unreleased]: https://github.com/refinedmods/refinedstorage-rei-integration/compare/v0.1.4...HEAD +[Unreleased]: https://github.com/refinedmods/refinedstorage-rei-integration/compare/v0.2.0...HEAD + +[0.2.0]: https://github.com/refinedmods/refinedstorage-rei-integration/compare/v0.1.4...v0.2.0 [0.1.4]: https://github.com/refinedmods/refinedstorage-rei-integration/compare/v0.1.3...v0.1.4 diff --git a/gradle.properties b/gradle.properties index d524ca5..aa8a9b5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ -refinedstorageVersion=2.0.0-milestone.3.14 -architecturyVersion=11.1.17 -clothConfigVersion=13.0.121 -reiVersion=14.1.727 +refinedstorageVersion=2.0.0-milestone.4.2 +architecturyVersion=13.0.3 +clothConfigVersion=15.0.127 +reiVersion=16.0.729 # Gradle org.gradle.jvmargs=-Xmx1G diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index b82aa23..a441313 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/refinedstorage-rei-integration-common/src/main/java/com/refinedmods/refinedstorage/rei/common/Common.java b/refinedstorage-rei-integration-common/src/main/java/com/refinedmods/refinedstorage/rei/common/Common.java index 6c01a4c..4d735cb 100644 --- a/refinedstorage-rei-integration-common/src/main/java/com/refinedmods/refinedstorage/rei/common/Common.java +++ b/refinedstorage-rei-integration-common/src/main/java/com/refinedmods/refinedstorage/rei/common/Common.java @@ -7,7 +7,10 @@ public final class Common { public static final String MOD_ID = "refinedstorage_rei_integration"; - public static final ResourceLocation SYNCHRONIZER_ID = new ResourceLocation(MOD_ID, "rei"); + public static final ResourceLocation SYNCHRONIZER_ID = ResourceLocation.fromNamespaceAndPath( + MOD_ID, + "rei" + ); public static final MutableComponent SYNCHRONIZER_TITLE = Component.translatable( "gui.%s.grid.synchronizer".formatted(MOD_ID) ); @@ -15,7 +18,10 @@ public final class Common { "gui.%s.grid.synchronizer.help".formatted(MOD_ID) ); - public static final ResourceLocation TWO_WAY_SYNCHRONIZER_ID = new ResourceLocation(MOD_ID, "rei_two_way"); + public static final ResourceLocation TWO_WAY_SYNCHRONIZER_ID = ResourceLocation.fromNamespaceAndPath( + MOD_ID, + "rei_two_way" + ); public static final MutableComponent TWO_WAY_SYNCHRONIZER_TITLE = Component.translatable( "gui.%s.grid.synchronizer.two_way".formatted(MOD_ID) ); @@ -23,7 +29,7 @@ public final class Common { "gui.%s.grid.synchronizer.two_way.help".formatted(MOD_ID) ); - public static final ResourceLocation FULLY_CHARGED_CONTROLLER_GROUP_ID = new ResourceLocation( + public static final ResourceLocation FULLY_CHARGED_CONTROLLER_GROUP_ID = ResourceLocation.fromNamespaceAndPath( MOD_ID, "fully_charged_controller" ); diff --git a/refinedstorage-rei-integration-fabric/.gitignore b/refinedstorage-rei-integration-fabric/.gitignore deleted file mode 100644 index 737e26b..0000000 --- a/refinedstorage-rei-integration-fabric/.gitignore +++ /dev/null @@ -1 +0,0 @@ -run/ \ No newline at end of file diff --git a/refinedstorage-rei-integration-fabric/build.gradle b/refinedstorage-rei-integration-fabric/build.gradle index 4893da5..d02374f 100644 --- a/refinedstorage-rei-integration-fabric/build.gradle +++ b/refinedstorage-rei-integration-fabric/build.gradle @@ -25,8 +25,8 @@ repositories { } dependencies { - modApi "com.refinedmods.refinedstorage2:refinedstorage2-platform-fabric:${refinedstorageVersion}" - // https://linkie.shedaniel.dev/dependencies?loader=fabric&version=1.20.4 + modApi "com.refinedmods.refinedstorage:refinedstorage-platform-fabric:${refinedstorageVersion}" + // https://linkie.shedaniel.dev/dependencies?loader=fabric&version=1.21 modApi "dev.architectury:architectury-fabric:${architecturyVersion}" modApi "me.shedaniel.cloth:cloth-config-fabric:${clothConfigVersion}" modApi "me.shedaniel:RoughlyEnoughItems-fabric:${reiVersion}" diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/CraftingGridTransferHandler.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/CraftingGridTransferHandler.java index 1bceb26..352c1c0 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/CraftingGridTransferHandler.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/CraftingGridTransferHandler.java @@ -1,13 +1,14 @@ package com.refinedmods.refinedstorage.rei.fabric; +import com.refinedmods.refinedstorage.api.resource.list.ResourceList; +import com.refinedmods.refinedstorage.platform.common.grid.CraftingGridContainerMenu; +import com.refinedmods.refinedstorage.platform.common.support.resource.ItemResource; + import java.awt.Color; import java.util.List; import java.util.stream.Collectors; import com.mojang.blaze3d.vertex.PoseStack; -import com.refinedmods.refinedstorage2.api.resource.list.ResourceList; -import com.refinedmods.refinedstorage2.platform.common.grid.CraftingGridContainerMenu; -import com.refinedmods.refinedstorage2.platform.common.support.resource.ItemResource; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.api.client.gui.widgets.Slot; import me.shedaniel.rei.api.client.gui.widgets.Widget; diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/DraggableStackVisitorImpl.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/DraggableStackVisitorImpl.java index 2df4d00..8c0af22 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/DraggableStackVisitorImpl.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/DraggableStackVisitorImpl.java @@ -1,15 +1,16 @@ package com.refinedmods.refinedstorage.rei.fabric; +import com.refinedmods.refinedstorage.platform.api.PlatformApi; +import com.refinedmods.refinedstorage.platform.api.support.resource.PlatformResourceKey; +import com.refinedmods.refinedstorage.platform.common.support.AbstractBaseScreen; +import com.refinedmods.refinedstorage.platform.common.support.containermenu.AbstractResourceContainerMenu; +import com.refinedmods.refinedstorage.platform.common.support.containermenu.ResourceSlot; +import com.refinedmods.refinedstorage.platform.common.support.packet.c2s.C2SPackets; + import java.util.ArrayList; import java.util.List; import java.util.stream.Stream; -import com.refinedmods.refinedstorage2.platform.api.PlatformApi; -import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey; -import com.refinedmods.refinedstorage2.platform.common.Platform; -import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen; -import com.refinedmods.refinedstorage2.platform.common.support.containermenu.AbstractResourceContainerMenu; -import com.refinedmods.refinedstorage2.platform.common.support.containermenu.ResourceSlot; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.api.client.gui.drag.DraggableStack; import me.shedaniel.rei.api.client.gui.drag.DraggableStackVisitor; @@ -62,7 +63,7 @@ private DraggedAcceptorResult accept( if (!slotBounds.contains(context.getCurrentPosition())) { continue; } - Platform.INSTANCE.getClientToServerCommunications().sendResourceFilterSlotChange(resource, slot.index); + C2SPackets.sendResourceFilterSlotChange(resource, slot.index); return DraggedAcceptorResult.ACCEPTED; } return DraggedAcceptorResult.PASS; diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ExclusionZonesProviderImpl.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ExclusionZonesProviderImpl.java index 1060920..73b222b 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ExclusionZonesProviderImpl.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ExclusionZonesProviderImpl.java @@ -1,9 +1,10 @@ package com.refinedmods.refinedstorage.rei.fabric; +import com.refinedmods.refinedstorage.platform.common.support.AbstractBaseScreen; + import java.util.Collection; import java.util.stream.Collectors; -import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.api.client.registry.screen.ExclusionZonesProvider; diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/GridFocusedStackProvider.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/GridFocusedStackProvider.java index a80ecf7..09dd951 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/GridFocusedStackProvider.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/GridFocusedStackProvider.java @@ -1,8 +1,9 @@ package com.refinedmods.refinedstorage.rei.fabric; -import com.refinedmods.refinedstorage2.platform.api.PlatformApi; -import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey; -import com.refinedmods.refinedstorage2.platform.common.grid.screen.AbstractGridScreen; +import com.refinedmods.refinedstorage.platform.api.PlatformApi; +import com.refinedmods.refinedstorage.platform.api.support.resource.PlatformResourceKey; +import com.refinedmods.refinedstorage.platform.common.grid.screen.AbstractGridScreen; + import dev.architectury.event.CompoundEventResult; import me.shedaniel.math.Point; import me.shedaniel.rei.api.client.registry.screen.FocusedStackProvider; diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiClientPlugin.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiClientPlugin.java index 04b98db..49eb288 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiClientPlugin.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiClientPlugin.java @@ -1,12 +1,13 @@ package com.refinedmods.refinedstorage.rei.fabric; +import com.refinedmods.refinedstorage.platform.common.content.ContentIds; +import com.refinedmods.refinedstorage.platform.common.content.Items; +import com.refinedmods.refinedstorage.platform.common.content.Tags; +import com.refinedmods.refinedstorage.platform.common.controller.ControllerBlockItem; +import com.refinedmods.refinedstorage.platform.common.support.AbstractBaseScreen; + import java.util.function.Supplier; -import com.refinedmods.refinedstorage2.platform.common.content.ContentIds; -import com.refinedmods.refinedstorage2.platform.common.content.Items; -import com.refinedmods.refinedstorage2.platform.common.content.Tags; -import com.refinedmods.refinedstorage2.platform.common.controller.ControllerBlockItem; -import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen; import me.shedaniel.rei.api.client.plugins.REIClientPlugin; import me.shedaniel.rei.api.client.registry.entry.CollapsibleEntryRegistry; import me.shedaniel.rei.api.client.registry.screen.ExclusionZones; @@ -22,9 +23,9 @@ import net.minecraft.tags.TagKey; import net.minecraft.world.item.Item; +import static com.refinedmods.refinedstorage.platform.common.util.IdentifierUtil.createTranslation; import static com.refinedmods.refinedstorage.rei.common.Common.FULLY_CHARGED_CONTROLLER_GROUP_ID; import static com.refinedmods.refinedstorage.rei.common.Common.FULLY_CHARGED_CONTROLLER_GROUP_NAME; -import static com.refinedmods.refinedstorage2.platform.common.util.IdentifierUtil.createTranslation; @Environment(EnvType.CLIENT) public class ReiClientPlugin implements REIClientPlugin { @@ -42,7 +43,7 @@ public void registerTransferHandlers(final TransferHandlerRegistry registry) { @Override public void registerItemComparators(final ItemComparatorRegistry registry) { - Items.INSTANCE.getControllers().stream().map(Supplier::get).forEach(registry::registerNbt); + Items.INSTANCE.getControllers().stream().map(Supplier::get).forEach(registry::registerComponents); } private Component tagName(final String name) { diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiGridSynchronizer.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiGridSynchronizer.java index 81e7525..5d8f1ef 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiGridSynchronizer.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiGridSynchronizer.java @@ -1,8 +1,9 @@ package com.refinedmods.refinedstorage.rei.fabric; +import com.refinedmods.refinedstorage.platform.common.grid.AbstractGridSynchronizer; + import javax.annotation.Nullable; -import com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridSynchronizer; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRecipeModIngredientConverter.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRecipeModIngredientConverter.java index d9e36a6..884b2c5 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRecipeModIngredientConverter.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRecipeModIngredientConverter.java @@ -1,11 +1,12 @@ package com.refinedmods.refinedstorage.rei.fabric; +import com.refinedmods.refinedstorage.platform.api.support.resource.PlatformResourceKey; +import com.refinedmods.refinedstorage.platform.api.support.resource.RecipeModIngredientConverter; +import com.refinedmods.refinedstorage.platform.common.support.resource.FluidResource; +import com.refinedmods.refinedstorage.platform.common.support.resource.ItemResource; + import java.util.Optional; -import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey; -import com.refinedmods.refinedstorage2.platform.api.support.resource.RecipeModIngredientConverter; -import com.refinedmods.refinedstorage2.platform.common.support.resource.FluidResource; -import com.refinedmods.refinedstorage2.platform.common.support.resource.ItemResource; import dev.architectury.fluid.FluidStack; import me.shedaniel.rei.api.common.util.EntryStacks; import net.minecraft.world.item.ItemStack; @@ -14,7 +15,7 @@ class ReiRecipeModIngredientConverter implements RecipeModIngredientConverter { @Override public Optional convertToResource(final Object ingredient) { if (ingredient instanceof FluidStack fluidStack) { - return Optional.of(new FluidResource(fluidStack.getFluid(), fluidStack.getTag())); + return Optional.of(new FluidResource(fluidStack.getFluid(), fluidStack.getPatch())); } if (ingredient instanceof ItemStack itemStack) { return Optional.of(ItemResource.ofItemStack(itemStack)); @@ -31,7 +32,7 @@ public Optional convertToIngredient(final PlatformResourceKey resource) final FluidStack fluidStack = FluidStack.create( fluidResource.fluid(), FluidStack.bucketAmount(), - fluidResource.tag() + fluidResource.components() ); return Optional.of(EntryStacks.of(fluidStack)); } diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRefinedStoragePlugin.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRefinedStoragePlugin.java index 8d7d855..bc9031d 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRefinedStoragePlugin.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRefinedStoragePlugin.java @@ -1,7 +1,7 @@ package com.refinedmods.refinedstorage.rei.fabric; -import com.refinedmods.refinedstorage2.platform.api.PlatformApi; -import com.refinedmods.refinedstorage2.platform.api.RefinedStoragePlugin; +import com.refinedmods.refinedstorage.platform.api.PlatformApi; +import com.refinedmods.refinedstorage.platform.api.RefinedStoragePlugin; import static com.refinedmods.refinedstorage.rei.common.Common.SYNCHRONIZER_ID; import static com.refinedmods.refinedstorage.rei.common.Common.TWO_WAY_SYNCHRONIZER_ID; diff --git a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ResourceFocusedStackProvider.java b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ResourceFocusedStackProvider.java index de7f6f8..d4a14ba 100644 --- a/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ResourceFocusedStackProvider.java +++ b/refinedstorage-rei-integration-fabric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ResourceFocusedStackProvider.java @@ -1,8 +1,9 @@ package com.refinedmods.refinedstorage.rei.fabric; -import com.refinedmods.refinedstorage2.platform.api.PlatformApi; -import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey; -import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen; +import com.refinedmods.refinedstorage.platform.api.PlatformApi; +import com.refinedmods.refinedstorage.platform.api.support.resource.PlatformResourceKey; +import com.refinedmods.refinedstorage.platform.common.support.AbstractBaseScreen; + import dev.architectury.event.CompoundEventResult; import me.shedaniel.math.Point; import me.shedaniel.rei.api.client.registry.screen.FocusedStackProvider; diff --git a/refinedstorage-rei-integration-fabric/src/main/resources/fabric.mod.json b/refinedstorage-rei-integration-fabric/src/main/resources/fabric.mod.json index a865411..74c6d92 100644 --- a/refinedstorage-rei-integration-fabric/src/main/resources/fabric.mod.json +++ b/refinedstorage-rei-integration-fabric/src/main/resources/fabric.mod.json @@ -26,14 +26,15 @@ "links": { "modmenu.discord": "https://discordapp.com/invite/VYzsydb" }, - "parent": "refinedstorage2" + "parent": "refinedstorage" } }, "depends": { "fabricloader": ">=0.14.6", "fabric-api": "*", - "minecraft": "~1.20.4", - "roughlyenoughitems": ">=14", + "minecraft": "~1.21", + "refinedstorage": ">=2.0.0-milestone.4.2", + "roughlyenoughitems": ">=16", "java": ">=17" } } diff --git a/refinedstorage-rei-integration-forge/.gitignore b/refinedstorage-rei-integration-forge/.gitignore deleted file mode 100644 index 643cb18..0000000 --- a/refinedstorage-rei-integration-forge/.gitignore +++ /dev/null @@ -1 +0,0 @@ -runs/ \ No newline at end of file diff --git a/refinedstorage-rei-integration-forge/build.gradle b/refinedstorage-rei-integration-neoforge/build.gradle similarity index 73% rename from refinedstorage-rei-integration-forge/build.gradle rename to refinedstorage-rei-integration-neoforge/build.gradle index ae80fa2..7cc9db0 100644 --- a/refinedstorage-rei-integration-forge/build.gradle +++ b/refinedstorage-rei-integration-neoforge/build.gradle @@ -2,9 +2,9 @@ plugins { id 'java-library' } -archivesBaseName = 'refinedstorage-rei-integration-forge' +archivesBaseName = 'refinedstorage-rei-integration-neoforge' -forgeProject("refinedstorage_rei_integration", project(":refinedstorage-rei-integration-common")) +neoForgeProject("refinedstorage_rei_integration", project(":refinedstorage-rei-integration-common")) repositories { maven { @@ -25,8 +25,8 @@ repositories { } dependencies { - api "com.refinedmods.refinedstorage2:refinedstorage2-platform-forge:${refinedstorageVersion}" - // https://linkie.shedaniel.dev/dependencies?loader=neoforge&version=1.20.4 + api "com.refinedmods.refinedstorage:refinedstorage-platform-neoforge:${refinedstorageVersion}" + // https://linkie.shedaniel.dev/dependencies?loader=neoforge&version=1.21 api "dev.architectury:architectury-neoforge:${architecturyVersion}" api "me.shedaniel.cloth:cloth-config-neoforge:${clothConfigVersion}" api "me.shedaniel:RoughlyEnoughItems-neoforge:${reiVersion}" diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/CraftingGridTransferHandler.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/CraftingGridTransferHandler.java similarity index 95% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/CraftingGridTransferHandler.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/CraftingGridTransferHandler.java index 5cfad0f..d73ceec 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/CraftingGridTransferHandler.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/CraftingGridTransferHandler.java @@ -1,13 +1,14 @@ package com.refinedmods.refinedstorage.rei.forge; +import com.refinedmods.refinedstorage.api.resource.list.ResourceList; +import com.refinedmods.refinedstorage.platform.common.grid.CraftingGridContainerMenu; +import com.refinedmods.refinedstorage.platform.common.support.resource.ItemResource; + import java.awt.Color; import java.util.List; import java.util.stream.Collectors; import com.mojang.blaze3d.vertex.PoseStack; -import com.refinedmods.refinedstorage2.api.resource.list.ResourceList; -import com.refinedmods.refinedstorage2.platform.common.grid.CraftingGridContainerMenu; -import com.refinedmods.refinedstorage2.platform.common.support.resource.ItemResource; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.api.client.gui.widgets.Slot; import me.shedaniel.rei.api.client.gui.widgets.Widget; diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/DraggableStackVisitorImpl.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/DraggableStackVisitorImpl.java similarity index 83% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/DraggableStackVisitorImpl.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/DraggableStackVisitorImpl.java index f2453ef..81d9bdc 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/DraggableStackVisitorImpl.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/DraggableStackVisitorImpl.java @@ -1,15 +1,16 @@ package com.refinedmods.refinedstorage.rei.forge; +import com.refinedmods.refinedstorage.platform.api.PlatformApi; +import com.refinedmods.refinedstorage.platform.api.support.resource.PlatformResourceKey; +import com.refinedmods.refinedstorage.platform.common.support.AbstractBaseScreen; +import com.refinedmods.refinedstorage.platform.common.support.containermenu.AbstractResourceContainerMenu; +import com.refinedmods.refinedstorage.platform.common.support.containermenu.ResourceSlot; +import com.refinedmods.refinedstorage.platform.common.support.packet.c2s.C2SPackets; + import java.util.ArrayList; import java.util.List; import java.util.stream.Stream; -import com.refinedmods.refinedstorage2.platform.api.PlatformApi; -import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey; -import com.refinedmods.refinedstorage2.platform.common.Platform; -import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen; -import com.refinedmods.refinedstorage2.platform.common.support.containermenu.AbstractResourceContainerMenu; -import com.refinedmods.refinedstorage2.platform.common.support.containermenu.ResourceSlot; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.api.client.gui.drag.DraggableStack; import me.shedaniel.rei.api.client.gui.drag.DraggableStackVisitor; @@ -62,7 +63,7 @@ private DraggedAcceptorResult accept( if (!slotBounds.contains(context.getCurrentPosition())) { continue; } - Platform.INSTANCE.getClientToServerCommunications().sendResourceFilterSlotChange(resource, slot.index); + C2SPackets.sendResourceFilterSlotChange(resource, slot.index); return DraggedAcceptorResult.ACCEPTED; } return DraggedAcceptorResult.PASS; diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ExclusionZonesProviderImpl.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ExclusionZonesProviderImpl.java similarity index 88% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ExclusionZonesProviderImpl.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ExclusionZonesProviderImpl.java index 6ba8936..cd187f2 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ExclusionZonesProviderImpl.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ExclusionZonesProviderImpl.java @@ -1,9 +1,10 @@ package com.refinedmods.refinedstorage.rei.forge; +import com.refinedmods.refinedstorage.platform.common.support.AbstractBaseScreen; + import java.util.Collection; import java.util.stream.Collectors; -import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen; import me.shedaniel.math.Rectangle; import me.shedaniel.rei.api.client.registry.screen.ExclusionZonesProvider; diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/GridFocusedStackProvider.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/GridFocusedStackProvider.java similarity index 82% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/GridFocusedStackProvider.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/GridFocusedStackProvider.java index 36da962..985963c 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/GridFocusedStackProvider.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/GridFocusedStackProvider.java @@ -1,8 +1,9 @@ package com.refinedmods.refinedstorage.rei.forge; -import com.refinedmods.refinedstorage2.platform.api.PlatformApi; -import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey; -import com.refinedmods.refinedstorage2.platform.common.grid.screen.AbstractGridScreen; +import com.refinedmods.refinedstorage.platform.api.PlatformApi; +import com.refinedmods.refinedstorage.platform.api.support.resource.PlatformResourceKey; +import com.refinedmods.refinedstorage.platform.common.grid.screen.AbstractGridScreen; + import dev.architectury.event.CompoundEventResult; import me.shedaniel.math.Point; import me.shedaniel.rei.api.client.registry.screen.FocusedStackProvider; diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/MissingIngredients.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/MissingIngredients.java similarity index 100% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/MissingIngredients.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/MissingIngredients.java diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ModInitializer.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ModInitializer.java similarity index 95% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ModInitializer.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ModInitializer.java index 4866947..b3c9df9 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ModInitializer.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ModInitializer.java @@ -1,8 +1,8 @@ package com.refinedmods.refinedstorage.rei.forge; +import com.refinedmods.refinedstorage.platform.api.PlatformApi; import com.refinedmods.refinedstorage.rei.common.Common; -import com.refinedmods.refinedstorage2.platform.api.PlatformApi; import net.neoforged.api.distmarker.Dist; import net.neoforged.bus.api.IEventBus; import net.neoforged.bus.api.SubscribeEvent; diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiClientPlugin.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiClientPlugin.java similarity index 90% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiClientPlugin.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiClientPlugin.java index 52d8fa5..51ac864 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiClientPlugin.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiClientPlugin.java @@ -1,12 +1,13 @@ package com.refinedmods.refinedstorage.rei.forge; +import com.refinedmods.refinedstorage.platform.common.content.ContentIds; +import com.refinedmods.refinedstorage.platform.common.content.Items; +import com.refinedmods.refinedstorage.platform.common.content.Tags; +import com.refinedmods.refinedstorage.platform.common.controller.ControllerBlockItem; +import com.refinedmods.refinedstorage.platform.common.support.AbstractBaseScreen; + import java.util.function.Supplier; -import com.refinedmods.refinedstorage2.platform.common.content.ContentIds; -import com.refinedmods.refinedstorage2.platform.common.content.Items; -import com.refinedmods.refinedstorage2.platform.common.content.Tags; -import com.refinedmods.refinedstorage2.platform.common.controller.ControllerBlockItem; -import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen; import me.shedaniel.rei.api.client.plugins.REIClientPlugin; import me.shedaniel.rei.api.client.registry.entry.CollapsibleEntryRegistry; import me.shedaniel.rei.api.client.registry.screen.ExclusionZones; @@ -21,9 +22,9 @@ import net.minecraft.tags.TagKey; import net.minecraft.world.item.Item; +import static com.refinedmods.refinedstorage.platform.common.util.IdentifierUtil.createTranslation; import static com.refinedmods.refinedstorage.rei.common.Common.FULLY_CHARGED_CONTROLLER_GROUP_ID; import static com.refinedmods.refinedstorage.rei.common.Common.FULLY_CHARGED_CONTROLLER_GROUP_NAME; -import static com.refinedmods.refinedstorage2.platform.common.util.IdentifierUtil.createTranslation; @REIPluginClient public class ReiClientPlugin implements REIClientPlugin { @@ -41,7 +42,7 @@ public void registerTransferHandlers(final TransferHandlerRegistry registry) { @Override public void registerItemComparators(final ItemComparatorRegistry registry) { - Items.INSTANCE.getControllers().stream().map(Supplier::get).forEach(registry::registerNbt); + Items.INSTANCE.getControllers().stream().map(Supplier::get).forEach(registry::registerComponents); } private Component tagName(final String name) { diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java similarity index 93% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java index 15d7e3f..ce56a03 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiGridSynchronizer.java @@ -1,8 +1,9 @@ package com.refinedmods.refinedstorage.rei.forge; +import com.refinedmods.refinedstorage.platform.common.grid.AbstractGridSynchronizer; + import javax.annotation.Nullable; -import com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridSynchronizer; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiHelper.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiHelper.java similarity index 100% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiHelper.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiHelper.java diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiRecipeModIngredientConverter.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiRecipeModIngredientConverter.java similarity index 74% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiRecipeModIngredientConverter.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiRecipeModIngredientConverter.java index dd9956b..f2f21e6 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiRecipeModIngredientConverter.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ReiRecipeModIngredientConverter.java @@ -1,11 +1,12 @@ package com.refinedmods.refinedstorage.rei.forge; +import com.refinedmods.refinedstorage.platform.api.support.resource.PlatformResourceKey; +import com.refinedmods.refinedstorage.platform.api.support.resource.RecipeModIngredientConverter; +import com.refinedmods.refinedstorage.platform.common.support.resource.FluidResource; +import com.refinedmods.refinedstorage.platform.common.support.resource.ItemResource; + import java.util.Optional; -import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey; -import com.refinedmods.refinedstorage2.platform.api.support.resource.RecipeModIngredientConverter; -import com.refinedmods.refinedstorage2.platform.common.support.resource.FluidResource; -import com.refinedmods.refinedstorage2.platform.common.support.resource.ItemResource; import dev.architectury.fluid.FluidStack; import me.shedaniel.rei.api.common.util.EntryStacks; import net.minecraft.world.item.ItemStack; @@ -14,7 +15,7 @@ class ReiRecipeModIngredientConverter implements RecipeModIngredientConverter { @Override public Optional convertToResource(final Object ingredient) { if (ingredient instanceof FluidStack fluidStack) { - return Optional.of(new FluidResource(fluidStack.getFluid(), fluidStack.getTag())); + return Optional.of(new FluidResource(fluidStack.getFluid(), fluidStack.getPatch())); } if (ingredient instanceof ItemStack itemStack) { return Optional.of(ItemResource.ofItemStack(itemStack)); @@ -31,7 +32,7 @@ public Optional convertToIngredient(final PlatformResourceKey resource) final FluidStack fluidStack = FluidStack.create( fluidResource.fluid(), FluidStack.bucketAmount(), - fluidResource.tag() + fluidResource.components() ); return Optional.of(EntryStacks.of(fluidStack)); } diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ResourceFocusedStackProvider.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ResourceFocusedStackProvider.java similarity index 82% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ResourceFocusedStackProvider.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ResourceFocusedStackProvider.java index 457dd19..3535aee 100644 --- a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ResourceFocusedStackProvider.java +++ b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/ResourceFocusedStackProvider.java @@ -1,8 +1,9 @@ package com.refinedmods.refinedstorage.rei.forge; -import com.refinedmods.refinedstorage2.platform.api.PlatformApi; -import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey; -import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen; +import com.refinedmods.refinedstorage.platform.api.PlatformApi; +import com.refinedmods.refinedstorage.platform.api.support.resource.PlatformResourceKey; +import com.refinedmods.refinedstorage.platform.common.support.AbstractBaseScreen; + import dev.architectury.event.CompoundEventResult; import me.shedaniel.math.Point; import me.shedaniel.rei.api.client.registry.screen.FocusedStackProvider; diff --git a/refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/package-info.java b/refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/package-info.java similarity index 100% rename from refinedstorage-rei-integration-forge/src/main/java/com/refinedmods/refinedstorage/rei/forge/package-info.java rename to refinedstorage-rei-integration-neoforge/src/main/java/com/refinedmods/refinedstorage/rei/forge/package-info.java diff --git a/refinedstorage-rei-integration-forge/src/main/resources/META-INF/mods.toml b/refinedstorage-rei-integration-neoforge/src/main/resources/META-INF/neoforge.mods.toml similarity index 76% rename from refinedstorage-rei-integration-forge/src/main/resources/META-INF/mods.toml rename to refinedstorage-rei-integration-neoforge/src/main/resources/META-INF/neoforge.mods.toml index 67eee63..13d8137 100644 --- a/refinedstorage-rei-integration-forge/src/main/resources/META-INF/mods.toml +++ b/refinedstorage-rei-integration-neoforge/src/main/resources/META-INF/neoforge.mods.toml @@ -6,18 +6,18 @@ license = "MIT" modId = "refinedstorage_rei_integration" version = "${version}" displayName = "Refined Storage - REI Integration" -displayURL = "https://github.com/refinedmods/refinedstorage-rei-integration" +displayURL = "https://refinedmods.com/refined-storage" authors = "Refined Mods" description = ''' REI integration for Refined Storage. ''' [[dependencies.refinedstorage_rei_integration]] -modId = "refinedstorage2" +modId = "refinedstorage" type = "required" -versionRange = "2.0.0-milestone.3.6" +versionRange = "2.0.0-milestone.4.2" side = "BOTH" [[dependencies.refinedstorage_rei_integration]] modId = "roughlyenoughitems" type = "required" -versionRange = "[14,)" +versionRange = "[16,)" side = "BOTH" diff --git a/refinedstorage-rei-integration-forge/src/main/resources/pack.mcmeta b/refinedstorage-rei-integration-neoforge/src/main/resources/pack.mcmeta similarity index 100% rename from refinedstorage-rei-integration-forge/src/main/resources/pack.mcmeta rename to refinedstorage-rei-integration-neoforge/src/main/resources/pack.mcmeta diff --git a/settings.gradle b/settings.gradle index f4af045..f65f7e7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,4 +1,4 @@ -gradle.ext.refinedArchitectVersion = "0.13.4" +gradle.ext.refinedArchitectVersion = "0.15.2" dependencyResolutionManagement { repositories { @@ -14,5 +14,5 @@ dependencyResolutionManagement { rootProject.name = 'refinedstorage-rei-integration' include 'refinedstorage-rei-integration-common' -include 'refinedstorage-rei-integration-forge' +include 'refinedstorage-rei-integration-neoforge' include 'refinedstorage-rei-integration-fabric'