Initial Commit with Torches. Missing LangKeys and Recipes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package me.hypherionmc.hyperlighting;
|
||||
|
||||
import me.hypherionmc.craterlib.client.gui.config.CraterConfigScreen;
|
||||
import me.hypherionmc.hyperlighting.client.init.ClientRegistration;
|
||||
import me.hypherionmc.hyperlighting.common.init.CommonRegistration;
|
||||
import net.minecraftforge.client.ConfigScreenHandler;
|
||||
import net.minecraftforge.fml.ModLoadingContext;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
|
||||
@Mod(Constants.MOD_ID)
|
||||
public class HyperLightingForge {
|
||||
|
||||
public HyperLightingForge() {
|
||||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientInit);
|
||||
CommonRegistration.registerAll();
|
||||
}
|
||||
|
||||
public void clientInit(FMLClientSetupEvent event) {
|
||||
new ClientRegistration().registerAll();
|
||||
ModLoadingContext.get().registerExtensionPoint(ConfigScreenHandler.ConfigScreenFactory.class, () -> new ConfigScreenHandler.ConfigScreenFactory((mc, screen) -> new CraterConfigScreen(CommonRegistration.config, screen)));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package me.hypherionmc.hyperlighting.client;
|
||||
|
||||
import me.hypherionmc.hyperlighting.client.particles.ParticleRegistryHandler;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.client.event.RegisterParticleProvidersEvent;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
|
||||
/**
|
||||
* @author HypherionSA
|
||||
* @date 03/07/2022
|
||||
*/
|
||||
@Mod.EventBusSubscriber(value = Dist.CLIENT, bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||
public class ForgeClientEventHandler {
|
||||
|
||||
@SubscribeEvent
|
||||
public static void registerParticles(RegisterParticleProvidersEvent event) {
|
||||
ParticleRegistryHandler.registerParticles(Minecraft.getInstance().particleEngine::register);
|
||||
}
|
||||
|
||||
}
|
||||
38
Forge/src/main/resources/META-INF/mods.toml
Normal file
38
Forge/src/main/resources/META-INF/mods.toml
Normal file
@@ -0,0 +1,38 @@
|
||||
modLoader="javafml"
|
||||
loaderVersion="[42,)"
|
||||
license="MIT"
|
||||
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/"
|
||||
|
||||
[[mods]] #mandatory
|
||||
modId="hyperlighting"
|
||||
version="${file.jarVersion}"
|
||||
displayName="Hyper Lighting 2"
|
||||
#updateJSONURL="https://change.me.example.invalid/updates.json"
|
||||
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/"
|
||||
logoFile="multiloader.png"
|
||||
#credits="Thanks for this example mod goes to Java"
|
||||
authors="HypherionSA"
|
||||
description='''
|
||||
Not your average Lighting & Decoration Mods
|
||||
'''
|
||||
|
||||
[[dependencies.hyperlighting]]
|
||||
modId="forge"
|
||||
mandatory=true
|
||||
versionRange="[42,)"
|
||||
ordering="NONE"
|
||||
side="BOTH"
|
||||
|
||||
[[dependencies.hyperlighting]]
|
||||
modId="minecraft"
|
||||
mandatory=true
|
||||
versionRange="[1.19.1,1.20)"
|
||||
ordering="NONE"
|
||||
side="BOTH"
|
||||
|
||||
[[dependencies.hyperlighting]]
|
||||
modId="craterlib"
|
||||
mandatory=true
|
||||
versionRange="1.0.x"
|
||||
ordering="AFTER"
|
||||
side="BOTH"
|
||||
16
Forge/src/main/resources/hyperlighting.forge.mixins.json
Normal file
16
Forge/src/main/resources/hyperlighting.forge.mixins.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "me.hypherionmc.hyperlighting.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
],
|
||||
"client": [
|
||||
],
|
||||
"server": [
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
},
|
||||
"refmap": "${refmap_target}refmap.json"
|
||||
}
|
||||
Reference in New Issue
Block a user