Update MDK with new output from mod generator (#1)
Co-authored-by: NeoForge MDK Automation <173375039+neoforge-mdk-automation[bot]@users.noreply.github.com>
This commit is contained in:
parent
3b47f6ef64
commit
f7e5feb03f
12 changed files with 150 additions and 140 deletions
18
src/main/java/com/example/examplemod/ExampleModClient.java
Normal file
18
src/main/java/com/example/examplemod/ExampleModClient.java
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package com.example.examplemod;
|
||||
|
||||
import net.neoforged.api.distmarker.Dist;
|
||||
import net.neoforged.fml.ModContainer;
|
||||
import net.neoforged.fml.common.Mod;
|
||||
import net.neoforged.neoforge.client.gui.ConfigurationScreen;
|
||||
import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
|
||||
|
||||
// This class will not load on dedicated servers. Accessing client side code from here is safe.
|
||||
@Mod(value = ExampleMod.MODID, dist = Dist.CLIENT)
|
||||
public class ExampleModClient {
|
||||
public ExampleModClient(ModContainer container) {
|
||||
// Allows NeoForge to create a config screen for this mod's configs.
|
||||
// The config screen is accessed by going to the Mods screen > clicking on your mod > clicking on config.
|
||||
// Do not forget to add translations for your config options to the en_us.json file.
|
||||
container.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue