mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-13 23:25:10 +01:00
Remove non-deprecated references of LambdaJCommon
Sorry Lambda! This is needed for Neoforge support and to reduce the file size in the future.
This commit is contained in:
@@ -41,6 +41,11 @@ configurations {
|
||||
dependencies {
|
||||
neoForge "net.neoforged:neoforge:$rootProject.neoforge_version"
|
||||
modImplementation include ("maven.modrinth:midnightlib:${rootProject.midnightlib_version}-neoforge")
|
||||
include modImplementation ("maven.modrinth:obsidianui:${project.obsidianui_version}-neoforge") {}
|
||||
shadowBundle('org.aperlambda:lambdajcommon:1.8.1') {
|
||||
exclude group: 'com.google.code.gson'
|
||||
exclude group: 'com.google.guava'
|
||||
}
|
||||
|
||||
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
||||
shadowBundle project(path: ':common', configuration: 'transformProductionNeoForge')
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
package com.example.yourmod.neoforge;
|
||||
|
||||
import com.example.yourmod.YourMod;
|
||||
import net.neoforged.api.distmarker.Dist;
|
||||
import net.neoforged.fml.common.Mod;
|
||||
|
||||
import static com.example.yourmod.YourMod.MOD_ID;
|
||||
|
||||
@Mod(value = MOD_ID)
|
||||
public class YourModNeoForge {
|
||||
public YourModNeoForge() {
|
||||
YourMod.init();
|
||||
}
|
||||
|
||||
@Mod(value = MOD_ID, dist = Dist.CLIENT)
|
||||
public static class YourModClientNeoforge {
|
||||
public YourModClientNeoforge() {
|
||||
YourMod.initClient();
|
||||
}
|
||||
}
|
||||
|
||||
@Mod(value = MOD_ID, dist = Dist.DEDICATED_SERVER)
|
||||
public static class YourModServerNeoforge {
|
||||
public YourModServerNeoforge() {
|
||||
YourMod.initServer();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package eu.midnightdust.midnightcontrols.neoforge;
|
||||
|
||||
import eu.midnightdust.midnightcontrols.MidnightControls;
|
||||
import eu.midnightdust.midnightcontrols.client.MidnightControlsClient;
|
||||
import net.neoforged.api.distmarker.Dist;
|
||||
import net.neoforged.fml.common.Mod;
|
||||
|
||||
import static eu.midnightdust.midnightcontrols.MidnightControlsConstants.NAMESPACE;
|
||||
|
||||
@Mod(value = NAMESPACE)
|
||||
public class MidnightControlsNeoForge {
|
||||
public MidnightControlsNeoForge() {
|
||||
MidnightControls.init();
|
||||
}
|
||||
|
||||
@Mod(value = NAMESPACE, dist = Dist.CLIENT)
|
||||
public static class YourModClientNeoforge {
|
||||
public YourModClientNeoforge() {
|
||||
MidnightControlsClient.initClient();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,33 +4,34 @@ loaderVersion = "[2,)"
|
||||
license = "MIT License"
|
||||
|
||||
[[mods]]
|
||||
modId = "yourmod"
|
||||
modId = "midnightcontrols"
|
||||
version = "${version}"
|
||||
displayName = "Your Mod"
|
||||
displayName = "MidnightControls"
|
||||
logoFile = "icon.png"
|
||||
authors = "You!"
|
||||
authors = "Motschen, LambdAurora"
|
||||
contributors = "akemin-dayo, DioEgizio, dogtopus, egeesin, EnnuiL, FlashyReese, gyular, Hambaka, Ivanoks, joaoh1, KiskaUWU, Madis0, RaptaG, ronniedude, spudpiggy, TrueHorse"
|
||||
description = '''
|
||||
An example multiloader mod featuring MidnightLib!
|
||||
Adds controller support and enhanced controls overall.
|
||||
'''
|
||||
|
||||
[[mixins]]
|
||||
config = "yourmod.mixins.json"
|
||||
config = "midnightcontrols.mixins.json"
|
||||
|
||||
[[dependencies.yourmod]]
|
||||
[[dependencies.midnightcontrols]]
|
||||
modId = "neoforge"
|
||||
mandatory = true
|
||||
versionRange = "[21.0,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.yourmod]]
|
||||
[[dependencies.midnightcontrols]]
|
||||
modId = "minecraft"
|
||||
mandatory = true
|
||||
versionRange = "[1.21,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.yourmod]]
|
||||
[[dependencies.midnightcontrols]]
|
||||
modId = "midnightlib"
|
||||
mandatory = true
|
||||
versionRange = "[1.0,)"
|
||||
|
||||
Reference in New Issue
Block a user