more fixes

This commit is contained in:
IThundxr 2025-01-17 20:22:26 -05:00
parent 09088569be
commit 73030c7456
Failed to generate hash of commit
14 changed files with 39 additions and 45 deletions

View file

@ -45,7 +45,7 @@ jobs:
fabric/build/libs/
neoforge/build/libs/
vanillinFabric/build/libs/
vanillinForge/build/libs/
vanillinNeoForge/build/libs/
test:
strategy:

View file

@ -39,8 +39,8 @@ repositories {
}
dependencies {
compileOnly fg.deobf("dev.engine_room.flywheel:flywheel-forge-api-${minecraft_version}:${flywheel_version}")
runtimeOnly fg.deobf("dev.engine_room.flywheel:flywheel-forge-${minecraft_version}:${flywheel_version}")
compileOnly fg.deobf("dev.engine_room.flywheel:flywheel-neoforge-api-${minecraft_version}:${flywheel_version}")
runtimeOnly fg.deobf("dev.engine_room.flywheel:flywheel-neoforge-${minecraft_version}:${flywheel_version}")
}
```
`${flywheel_version}` gets replaced by the version of Flywheel you want to use, eg. `1.0.0-beta`

View file

@ -39,7 +39,7 @@ fabric_loader_version = 0.16.5
fabric_api_version = 0.105.0+1.21.1
# Build dependency mod versions
sodium_version = mc1.21.1-0.6.0-beta.4
sodium_version = mc1.21.1-0.6.5
iris_version = 1.8.0-beta.8+1.21.1
# There is no oculus for 1.21.1 so we will only support iris
embeddium_version = 1.0.11+mc1.21.1

View file

@ -10,7 +10,7 @@ plugins {
val common = ":common"
val commonProject = project(common)
subproject.init("flywheel-forge", "flywheel_group", "flywheel_version")
subproject.init("flywheel-neoforge", "flywheel_group", "flywheel_version")
val api = sourceSets.create("api")
val lib = sourceSets.create("lib")
@ -65,12 +65,12 @@ platform {
}
jarSets {
mainSet.publish("flywheel-forge-${project.property("artifact_minecraft_version")}")
mainSet.publish("flywheel-neoforge-${project.property("artifact_minecraft_version")}")
mainSet.outgoing("flywheel")
create("api", api, lib).apply {
addToAssemble()
publish("flywheel-forge-api-${project.property("artifact_minecraft_version")}")
publish("flywheel-neoforge-api-${project.property("artifact_minecraft_version")}")
configureJar {
manifest {

View file

@ -26,7 +26,7 @@ versionRange = "${minecraft_maven_version_range}"
side = "CLIENT"
[[dependencies.${ flywheel_id }]]
modId = "forge"
modId = "neoforge"
mandatory = true
versionRange = "${neoforge_version_range}"
side = "CLIENT"

View file

@ -18,5 +18,5 @@ rootProject.name = "Flywheel"
include("common")
include("fabric")
include("neoforge")
include("vanillinForge")
include("vanillinNeoForge")
include("vanillinFabric")

View file

@ -45,7 +45,7 @@ dependencies {
modImplementation("net.fabricmc:fabric-loader:${property("fabric_loader_version")}")
modApi("net.fabricmc.fabric-api:fabric-api:${property("fabric_api_version")}")
modCompileOnly("maven.modrinth:sodium:${property("sodium_version")}")
modCompileOnly("maven.modrinth:sodium:${property("sodium_version")}-fabric")
compileOnly(project(path = common, configuration = "vanillinClasses"))
compileOnly(project(path = common, configuration = "vanillinResources"))

View file

@ -1 +0,0 @@
loom.platform=forge

View file

@ -1,23 +0,0 @@
package dev.engine_room.vanillin;
import dev.engine_room.vanillin.visuals.VanillaVisuals;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
@Mod(Vanillin.ID)
public class VanillinForge {
public VanillinForge() {
IEventBus forgeEventBus = MinecraftForge.EVENT_BUS;
IEventBus modEventBus = FMLJavaModLoadingContext.get()
.getModEventBus();
DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> () -> clientInit(forgeEventBus, modEventBus));
}
private static void clientInit(IEventBus forgeEventBus, IEventBus modEventBus) {
VanillaVisuals.init();
}
}

View file

@ -8,9 +8,9 @@ plugins {
}
val common = ":common"
val platform = ":forge"
val platform = ":neoforge"
subproject.init("vanillin-forge", "vanillin_group", "vanillin_version")
subproject.init("vanillin-neoforge", "vanillin_group", "vanillin_version")
val main = sourceSets.getByName("main")
@ -27,7 +27,7 @@ transitiveSourceSets {
}
jarSets {
mainSet.publish("vanillin-forge-${project.property("artifact_minecraft_version")}")
mainSet.publish("vanillin-neoforge-${project.property("artifact_minecraft_version")}")
}
defaultPackageInfos {
@ -40,11 +40,6 @@ loom {
add(main, "vanillin.refmap.json")
}
forge {
// mixinConfig("flywheel.backend.mixins.json")
// mixinConfig("flywheel.impl.mixins.json")
}
runs {
configureEach {
property("forge.logging.markers", "")
@ -53,8 +48,15 @@ loom {
}
}
repositories {
maven("https://maven.neoforged.net/releases/")
}
dependencies {
forge("net.minecraftforge:forge:${property("minecraft_version")}-${property("forge_version")}")
neoForge("net.neoforged:neoforge:${property("neoforge_version")}")
modCompileOnly("maven.modrinth:sodium:${property("sodium_version")}-neoforge")
modCompileOnly("maven.modrinth:iris:${property("iris_version")}-neoforge")
modCompileOnly("maven.modrinth:embeddium:${property("embeddium_version")}")

View file

@ -0,0 +1 @@
loom.platform = neoforge

View file

@ -0,0 +1,15 @@
package dev.engine_room.vanillin;
import dev.engine_room.vanillin.visuals.VanillaVisuals;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.common.NeoForge;
@Mod(value = Vanillin.ID, dist = Dist.CLIENT)
public class VanillinNeoForgeClient {
public VanillinNeoForgeClient(IEventBus modEventBus) {
IEventBus neoEventBus = NeoForge.EVENT_BUS;
VanillaVisuals.init();
}
}

View file

@ -21,9 +21,9 @@ versionRange = "${minecraft_maven_version_range}"
side = "CLIENT"
[[dependencies.${ vanillin_id }]]
modId = "forge"
modId = "neoforge"
mandatory = true
versionRange = "${forge_version_range}"
versionRange = "${neoforge_version_range}"
side = "CLIENT"
[[dependencies.${ vanillin_id }]]