Skip to content

Commit

Permalink
refactor: rename mod plugin class
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Jun 18, 2024
1 parent 261ba96 commit b30f9cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

public class JeiProxy {
public String getSearchFieldText() {
final IJeiRuntime runtime = RefinedStorageJeiModPlugin.getRuntime();
final IJeiRuntime runtime = RefinedStorageModPlugin.getRuntime();
if (runtime == null) {
return "";
}
return runtime.getIngredientFilter().getFilterText();
}

public void setSearchFieldText(final String text) {
final IJeiRuntime runtime = RefinedStorageJeiModPlugin.getRuntime();
final IJeiRuntime runtime = RefinedStorageModPlugin.getRuntime();
if (runtime != null) {
runtime.getIngredientFilter().setFilterText(text);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
import org.slf4j.LoggerFactory;

@JeiPlugin
public class RefinedStorageJeiModPlugin implements IModPlugin {
public class RefinedStorageModPlugin implements IModPlugin {
private static final ResourceLocation ID = new ResourceLocation(Common.MOD_ID, "plugin");
private static final Logger LOGGER = LoggerFactory.getLogger(RefinedStorageJeiModPlugin.class);
private static final Logger LOGGER = LoggerFactory.getLogger(RefinedStorageModPlugin.class);
@Nullable
private static IJeiRuntime runtime;

Expand All @@ -39,7 +39,7 @@ public void onRuntimeAvailable(final IJeiRuntime newRuntime) {
if (runtime == null) {
initializePlatform(newRuntime.getJeiHelpers().getPlatformFluidHelper());
}
RefinedStorageJeiModPlugin.runtime = newRuntime;
RefinedStorageModPlugin.runtime = newRuntime;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"com.refinedmods.refinedstorage.jei.fabric.ModInitializerImpl"
],
"jei_mod_plugin": [
"com.refinedmods.refinedstorage.jei.common.RefinedStorageJeiModPlugin"
"com.refinedmods.refinedstorage.jei.common.RefinedStorageModPlugin"
]
},
"custom": {
Expand Down

0 comments on commit b30f9cf

Please sign in to comment.