generated from NeoForgeMDKs/MDK-1.21-ModDevGradle
-
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.
- Loading branch information
Showing
5 changed files
with
60 additions
and
189 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,25 +1,4 @@ | ||
# FrozenLib - NeoForge | ||
Library mod for FrozenBlock's mods | ||
|
||
Installation information | ||
======= | ||
|
||
This template repository can be directly cloned to get you started with a new | ||
mod. Simply create a new repository cloned from this one, by following the | ||
instructions provided by [GitHub](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template). | ||
|
||
Once you have your clone, simply open the repository in the IDE of your choice. The usual recommendation for an IDE is either IntelliJ IDEA or Eclipse. | ||
|
||
If at any point you are missing libraries in your IDE, or you've run into problems you can | ||
run `gradlew --refresh-dependencies` to refresh the local cache. `gradlew clean` to reset everything | ||
{this does not affect your code} and then start the process again. | ||
|
||
Mapping Names: | ||
============ | ||
By default, the MDK is configured to use the official mapping names from Mojang for methods and fields | ||
in the Minecraft codebase. These names are covered by a specific license. All modders should be aware of this | ||
license. For the latest license text, refer to the mapping file itself, or the reference copy here: | ||
https://github.com/NeoForged/NeoForm/blob/main/Mojang.md | ||
|
||
Additional Resources: | ||
========== | ||
Community Documentation: https://docs.neoforged.net/ | ||
NeoForged Discord: https://discord.neoforged.net/ | ||
Created by [AViewFromTheTop](https://github.com/AViewFromTheTop) & [TreeTrain1](https://github.com/Treetrain1), this is a NeoForge port made by [LIUKRAST](https://github.com/LIUKRAST) |
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
This file was deleted.
Oops, something went wrong.
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
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,50 @@ | ||
package net.frozenblock.lib; | ||
|
||
import org.slf4j.Logger; | ||
|
||
import com.mojang.logging.LogUtils; | ||
|
||
import net.neoforged.api.distmarker.Dist; | ||
import net.neoforged.bus.api.IEventBus; | ||
import net.neoforged.bus.api.SubscribeEvent; | ||
import net.neoforged.fml.ModContainer; | ||
import net.neoforged.fml.common.EventBusSubscriber; | ||
import net.neoforged.fml.common.Mod; | ||
import net.neoforged.fml.config.ModConfig; | ||
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent; | ||
import net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent; | ||
import net.neoforged.neoforge.common.NeoForge; | ||
import net.neoforged.neoforge.event.server.ServerStartingEvent; | ||
|
||
|
||
@Mod(FrozenMain.MOD_ID) | ||
public class FrozenMain { | ||
|
||
public static final String MOD_ID = "frozenlib"; | ||
|
||
private static final Logger LOGGER = LogUtils.getLogger(); | ||
|
||
public FrozenMain(IEventBus modEventBus, ModContainer modContainer) { | ||
|
||
modEventBus.addListener(this::commonSetup); | ||
|
||
NeoForge.EVENT_BUS.register(this); | ||
|
||
modContainer.registerConfig(ModConfig.Type.COMMON, Config.SPEC); | ||
} | ||
|
||
private void commonSetup(final FMLCommonSetupEvent event) { | ||
|
||
} | ||
|
||
@SubscribeEvent | ||
public void onServerStarting(ServerStartingEvent event) { | ||
} | ||
|
||
@EventBusSubscriber(modid = MOD_ID, bus = EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) | ||
public static class ClientModEvents { | ||
@SubscribeEvent | ||
public static void onClientSetup(FMLClientSetupEvent event) { | ||
} | ||
} | ||
} |