Skip to content

Commit

Permalink
NeoFOrge可以直接在配置按钮打开Ayame设置
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyRespawnanchor committed Oct 5, 2024
1 parent 2d0fc8f commit 412139a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,24 @@

import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;
import net.neoforged.fml.ModLoadingContext;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
import org.ayamemc.ayame.Ayame;
import org.ayamemc.ayame.client.AyameClient;
import org.ayamemc.ayame.client.IAyameClientEvents;
import org.ayamemc.ayame.client.gui.screen.SettingsScreen;

@OnlyIn(Dist.CLIENT)
@Mod(value = Ayame.MOD_ID, dist = Dist.CLIENT)
public class AyameNeoForgeClient {
public AyameNeoForgeClient() {
AyameClient.init();
IAyameClientEvents.Instance.INSTANCE = new AyameClientEventsNeoForgeImpl();
ModLoadingContext.get().registerExtensionPoint(
IConfigScreenFactory.class,
() -> (modContainer, parentScreen) -> new SettingsScreen(parentScreen));
}


}

0 comments on commit 412139a

Please sign in to comment.