-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use refined storage plugin system to get platform api
- Loading branch information
1 parent
970d96b
commit 1e5d463
Showing
3 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
19 changes: 0 additions & 19 deletions
19
...ric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ClientModInitializerImpl.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...bric/src/main/java/com/refinedmods/refinedstorage/rei/fabric/ReiRefinedStoragePlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters