diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-09-20 22:26:22 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-09-20 22:26:22 +0800 |
| commit | 23a720347250486e0552cb9d6890f47ed038de94 (patch) | |
| tree | db518bc9b991fac9e7b234551e1bcdab289b042d /RoughlyEnoughItems-runtime/src/main | |
| parent | 25433865771c4569902875479e41e9408c6dc548 (diff) | |
| download | RoughlyEnoughItems-23a720347250486e0552cb9d6890f47ed038de94.tar.gz RoughlyEnoughItems-23a720347250486e0552cb9d6890f47ed038de94.tar.bz2 RoughlyEnoughItems-23a720347250486e0552cb9d6890f47ed038de94.zip | |
Add config gui extension
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main')
| -rw-r--r-- | RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigManagerImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigManagerImpl.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigManagerImpl.java index f838bbf14..8d7df6070 100644 --- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigManagerImpl.java +++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ConfigManagerImpl.java @@ -68,6 +68,8 @@ import net.minecraft.util.text.StringTextComponent; import net.minecraft.util.text.TranslationTextComponent; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; +import net.minecraftforge.fml.ExtensionPoint; +import net.minecraftforge.fml.ModLoadingContext; import org.jetbrains.annotations.ApiStatus; import java.util.ArrayList; @@ -138,6 +140,8 @@ public class ConfigManagerImpl implements ConfigManager { , (field) -> field.getType() == List.class, ConfigObjectImpl.UseFilteringScreen.class); saveConfig(); RoughlyEnoughItemsCore.LOGGER.info("Config loaded."); + + ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.CONFIGGUIFACTORY, () -> (minecraft, screen) -> getConfigScreen(screen)); } @Override |
