Skip to content

Commit

Permalink
refactor: use refined storage plugin system to get platform api
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Jun 18, 2024
1 parent 970d96b commit 1e5d463
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 21 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.refinedmods.refinedstorage.rei.fabric;

import com.refinedmods.refinedstorage2.platform.api.PlatformApi;
import com.refinedmods.refinedstorage2.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;

public class ReiRefinedStoragePlugin implements RefinedStoragePlugin {
@Override
public void onPlatformApiAvailable(final PlatformApi platformApi) {
platformApi.addIngredientConverter(new ReiRecipeModIngredientConverter());
platformApi.getGridSynchronizerRegistry().register(SYNCHRONIZER_ID, new ReiGridSynchronizer(false));
platformApi.getGridSynchronizerRegistry().register(TWO_WAY_SYNCHRONIZER_ID, new ReiGridSynchronizer(true));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"license": "MIT",
"environment": "*",
"entrypoints": {
"client": [
"com.refinedmods.refinedstorage.rei.fabric.ClientModInitializerImpl"
"refinedstorage_plugin": [
"com.refinedmods.refinedstorage.rei.fabric.ReiRefinedStoragePlugin"
],
"rei_client": [
"com.refinedmods.refinedstorage.rei.fabric.ReiClientPlugin"
Expand Down

0 comments on commit 1e5d463

Please sign in to comment.