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 v0.2.0 #7

Merged
merged 6 commits into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
secrets: inherit
with:
project-name: 'Refined Storage - JEI Integration'
mutation-testing: false
mutation-testing: false
javadoc: false
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.2.0] - 2024-06-09

### Fixed

- Support for Refined Storage v2.0.0-milestone.3.8.

## [0.1.0] - 2024-06-08

### Added
Expand All @@ -17,6 +23,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Recipe transfer integration for the Crafting Grid.
- Grid / JEI search box synchronization options.

[Unreleased]: https://github.com/refinedmods/refinedstorage-jei-integration/compare/v0.1.0...HEAD
[Unreleased]: https://github.com/refinedmods/refinedstorage-jei-integration/compare/v0.2.0...HEAD

[0.2.0]: https://github.com/refinedmods/refinedstorage-jei-integration/compare/v0.1.0...v0.2.0

[0.1.0]: https://github.com/refinedmods/refinedstorage-jei-integration/compare/9145f6a9e8e1b1efd122d9e4cf91ffbd942625c7...v0.1.0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Adds support for:
- [Packages](https://github.com/refinedmods/refinedstorage-jei-integration/packages)
- [Issues](https://github.com/refinedmods/refinedstorage-jei-integration/issues)
- [Refined Mods on GitHub](https://github.com/refinedmods)
- [Crowdin](https://crowdin.com/project/refined-storage-jei-integration)
- [Discord](https://discordapp.com/invite/VYzsydb)
- [Twitter](https://twitter.com/refinedmods)
- [Mastodon](https://anvil.social/@refinedmods)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
refinedstorageVersion=2.0.0-milestone.3.8
# Gradle
org.gradle.jvmargs=-Xmx1G
refinedstorageVersion=2.0.0-milestone.3.7
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import java.util.Collections;
import java.util.List;

import com.refinedmods.refinedstorage2.platform.api.recipemod.IngredientConverter;
import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey;
import com.refinedmods.refinedstorage2.platform.api.support.resource.RecipeModIngredientConverter;
import com.refinedmods.refinedstorage2.platform.common.Platform;
import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen;
import com.refinedmods.refinedstorage2.platform.common.support.containermenu.AbstractResourceContainerMenu;
Expand All @@ -16,9 +16,9 @@

@SuppressWarnings("rawtypes")
class GhostIngredientHandler implements IGhostIngredientHandler<AbstractBaseScreen> {
private final IngredientConverter ingredientConverter;
private final RecipeModIngredientConverter ingredientConverter;

GhostIngredientHandler(final IngredientConverter ingredientConverter) {
GhostIngredientHandler(final RecipeModIngredientConverter ingredientConverter) {
this.ingredientConverter = ingredientConverter;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import java.util.Optional;

import com.refinedmods.refinedstorage2.platform.api.grid.view.PlatformGridResource;
import com.refinedmods.refinedstorage2.platform.api.recipemod.IngredientConverter;
import com.refinedmods.refinedstorage2.platform.api.support.resource.PlatformResourceKey;
import com.refinedmods.refinedstorage2.platform.api.support.resource.RecipeModIngredientConverter;
import com.refinedmods.refinedstorage2.platform.common.grid.screen.AbstractGridScreen;
import mezz.jei.api.gui.handlers.IGuiContainerHandler;
import mezz.jei.api.ingredients.IIngredientHelper;
Expand All @@ -13,10 +13,10 @@
import mezz.jei.api.runtime.IIngredientManager;

class GridGuiContainerHandler implements IGuiContainerHandler<AbstractGridScreen<?>> {
private final IngredientConverter converter;
private final RecipeModIngredientConverter converter;
private final IIngredientManager ingredientManager;

GridGuiContainerHandler(final IngredientConverter converter, final IIngredientManager ingredientManager) {
GridGuiContainerHandler(final RecipeModIngredientConverter converter, final IIngredientManager ingredientManager) {
this.converter = converter;
this.ingredientManager = ingredientManager;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@
import static com.refinedmods.refinedstorage.jei.common.Common.MOD_ID;

class JeiGridSynchronizer extends AbstractGridSynchronizer {
private static final MutableComponent TITLE = Component.translatable(
"gui.%s.grid.synchronizer.jei".formatted(MOD_ID)
);
private static final MutableComponent TITLE = Component.translatable("gui.%s.grid.synchronizer".formatted(MOD_ID));
private static final MutableComponent TITLE_TWO_WAY = Component.translatable(
"gui.%s.grid.synchronizer.jei.two_way".formatted(MOD_ID)
);
private static final Component HELP = Component.translatable(
"gui.%s.grid.synchronizer.jei.help".formatted(MOD_ID)
"gui.%s.grid.synchronizer.two_way".formatted(MOD_ID)
);
private static final Component HELP = Component.translatable("gui.%s.grid.synchronizer.help".formatted(MOD_ID));
private static final Component HELP_TWO_WAY = Component.translatable(
"gui.%s.grid.synchronizer.jei.two_way.help".formatted(MOD_ID)
"gui.%s.grid.synchronizer.two_way.help".formatted(MOD_ID)
);

private final JeiProxy jeiProxy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

import java.util.Optional;

import com.refinedmods.refinedstorage2.platform.api.recipemod.IngredientConverter;
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 mezz.jei.api.helpers.IPlatformFluidHelper;
import net.minecraft.world.item.ItemStack;

class IngredientConvertImpl implements IngredientConverter {
class JeiRecipeModIngredientConverter implements RecipeModIngredientConverter {
private final IPlatformFluidHelper<?> fluidHelper;

IngredientConvertImpl(final IPlatformFluidHelper<?> fluidHelper) {
JeiRecipeModIngredientConverter(final IPlatformFluidHelper<?> fluidHelper) {
this.fluidHelper = fluidHelper;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import javax.annotation.Nullable;

import com.refinedmods.refinedstorage2.platform.api.PlatformApi;
import com.refinedmods.refinedstorage2.platform.api.recipemod.IngredientConverter;
import com.refinedmods.refinedstorage2.platform.api.support.resource.RecipeModIngredientConverter;
import com.refinedmods.refinedstorage2.platform.common.grid.screen.AbstractGridScreen;
import com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen;
import mezz.jei.api.IModPlugin;
Expand Down Expand Up @@ -44,7 +44,7 @@ public void onRuntimeAvailable(final IJeiRuntime newRuntime) {

@Override
public void registerGuiHandlers(final IGuiHandlerRegistration registration) {
final IngredientConverter converter = PlatformApi.INSTANCE.getIngredientConverter();
final RecipeModIngredientConverter converter = PlatformApi.INSTANCE.getIngredientConverter();
registration.addGenericGuiContainerHandler(
AbstractBaseScreen.class,
new ResourceGuiContainerHandler(converter, registration.getJeiHelpers().getIngredientManager())
Expand Down Expand Up @@ -84,6 +84,6 @@ private void registerGridSynchronizers() {
}

private void registerIngredientConverters(final IPlatformFluidHelper<?> fluidHelper) {
PlatformApi.INSTANCE.registerIngredientConverter(new IngredientConvertImpl(fluidHelper));
PlatformApi.INSTANCE.addIngredientConverter(new JeiRecipeModIngredientConverter(fluidHelper));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import java.util.Optional;
import javax.annotation.Nullable;

import com.refinedmods.refinedstorage2.platform.api.recipemod.IngredientConverter;
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.AbstractBaseScreen;
import mezz.jei.api.gui.handlers.IGuiContainerHandler;
import mezz.jei.api.ingredients.IIngredientHelper;
Expand All @@ -13,10 +13,11 @@
import mezz.jei.api.runtime.IIngredientManager;

class ResourceGuiContainerHandler implements IGuiContainerHandler<AbstractBaseScreen<?>> {
private final IngredientConverter converter;
private final RecipeModIngredientConverter converter;
private final IIngredientManager ingredientManager;

ResourceGuiContainerHandler(final IngredientConverter converter, final IIngredientManager ingredientManager) {
ResourceGuiContainerHandler(final RecipeModIngredientConverter converter,
final IIngredientManager ingredientManager) {
this.converter = converter;
this.ingredientManager = ingredientManager;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"gui.refinedstorage_jei_integration.grid.synchronizer.jei": "JEI",
"gui.refinedstorage_jei_integration.grid.synchronizer.jei.help": "Sync the search box text to the JEI filter.",
"gui.refinedstorage_jei_integration.grid.synchronizer.jei.two_way": "JEI two-way",
"gui.refinedstorage_jei_integration.grid.synchronizer.jei.two_way.help": "Sync the search box text to the JEI filter, and the JEI filter to the search box text."
"gui.refinedstorage_jei_integration.grid.synchronizer": "JEI",
"gui.refinedstorage_jei_integration.grid.synchronizer.help": "Sync the search box text to the JEI filter.",
"gui.refinedstorage_jei_integration.grid.synchronizer.two_way": "JEI two-way",
"gui.refinedstorage_jei_integration.grid.synchronizer.two_way.help": "Sync the search box text to the JEI filter, and the JEI filter to the search box text."
}
Loading