mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-22 19:07:54 +01:00
more fixes
This commit is contained in:
parent
09088569be
commit
73030c7456
14 changed files with 39 additions and 45 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -45,7 +45,7 @@ jobs:
|
||||||
fabric/build/libs/
|
fabric/build/libs/
|
||||||
neoforge/build/libs/
|
neoforge/build/libs/
|
||||||
vanillinFabric/build/libs/
|
vanillinFabric/build/libs/
|
||||||
vanillinForge/build/libs/
|
vanillinNeoForge/build/libs/
|
||||||
|
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -39,8 +39,8 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly fg.deobf("dev.engine_room.flywheel:flywheel-forge-api-${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-forge-${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`
|
`${flywheel_version}` gets replaced by the version of Flywheel you want to use, eg. `1.0.0-beta`
|
||||||
|
|
|
@ -39,7 +39,7 @@ fabric_loader_version = 0.16.5
|
||||||
fabric_api_version = 0.105.0+1.21.1
|
fabric_api_version = 0.105.0+1.21.1
|
||||||
|
|
||||||
# Build dependency mod versions
|
# 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
|
iris_version = 1.8.0-beta.8+1.21.1
|
||||||
# There is no oculus for 1.21.1 so we will only support iris
|
# There is no oculus for 1.21.1 so we will only support iris
|
||||||
embeddium_version = 1.0.11+mc1.21.1
|
embeddium_version = 1.0.11+mc1.21.1
|
||||||
|
|
|
@ -10,7 +10,7 @@ plugins {
|
||||||
val common = ":common"
|
val common = ":common"
|
||||||
val commonProject = project(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 api = sourceSets.create("api")
|
||||||
val lib = sourceSets.create("lib")
|
val lib = sourceSets.create("lib")
|
||||||
|
@ -65,12 +65,12 @@ platform {
|
||||||
}
|
}
|
||||||
|
|
||||||
jarSets {
|
jarSets {
|
||||||
mainSet.publish("flywheel-forge-${project.property("artifact_minecraft_version")}")
|
mainSet.publish("flywheel-neoforge-${project.property("artifact_minecraft_version")}")
|
||||||
mainSet.outgoing("flywheel")
|
mainSet.outgoing("flywheel")
|
||||||
|
|
||||||
create("api", api, lib).apply {
|
create("api", api, lib).apply {
|
||||||
addToAssemble()
|
addToAssemble()
|
||||||
publish("flywheel-forge-api-${project.property("artifact_minecraft_version")}")
|
publish("flywheel-neoforge-api-${project.property("artifact_minecraft_version")}")
|
||||||
|
|
||||||
configureJar {
|
configureJar {
|
||||||
manifest {
|
manifest {
|
||||||
|
|
|
@ -26,7 +26,7 @@ versionRange = "${minecraft_maven_version_range}"
|
||||||
side = "CLIENT"
|
side = "CLIENT"
|
||||||
|
|
||||||
[[dependencies.${ flywheel_id }]]
|
[[dependencies.${ flywheel_id }]]
|
||||||
modId = "forge"
|
modId = "neoforge"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "${neoforge_version_range}"
|
versionRange = "${neoforge_version_range}"
|
||||||
side = "CLIENT"
|
side = "CLIENT"
|
||||||
|
|
|
@ -18,5 +18,5 @@ rootProject.name = "Flywheel"
|
||||||
include("common")
|
include("common")
|
||||||
include("fabric")
|
include("fabric")
|
||||||
include("neoforge")
|
include("neoforge")
|
||||||
include("vanillinForge")
|
include("vanillinNeoForge")
|
||||||
include("vanillinFabric")
|
include("vanillinFabric")
|
||||||
|
|
|
@ -45,7 +45,7 @@ dependencies {
|
||||||
modImplementation("net.fabricmc:fabric-loader:${property("fabric_loader_version")}")
|
modImplementation("net.fabricmc:fabric-loader:${property("fabric_loader_version")}")
|
||||||
modApi("net.fabricmc.fabric-api:fabric-api:${property("fabric_api_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 = "vanillinClasses"))
|
||||||
compileOnly(project(path = common, configuration = "vanillinResources"))
|
compileOnly(project(path = common, configuration = "vanillinResources"))
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
loom.platform=forge
|
|
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -8,9 +8,9 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
val common = ":common"
|
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")
|
val main = sourceSets.getByName("main")
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ transitiveSourceSets {
|
||||||
}
|
}
|
||||||
|
|
||||||
jarSets {
|
jarSets {
|
||||||
mainSet.publish("vanillin-forge-${project.property("artifact_minecraft_version")}")
|
mainSet.publish("vanillin-neoforge-${project.property("artifact_minecraft_version")}")
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultPackageInfos {
|
defaultPackageInfos {
|
||||||
|
@ -40,11 +40,6 @@ loom {
|
||||||
add(main, "vanillin.refmap.json")
|
add(main, "vanillin.refmap.json")
|
||||||
}
|
}
|
||||||
|
|
||||||
forge {
|
|
||||||
// mixinConfig("flywheel.backend.mixins.json")
|
|
||||||
// mixinConfig("flywheel.impl.mixins.json")
|
|
||||||
}
|
|
||||||
|
|
||||||
runs {
|
runs {
|
||||||
configureEach {
|
configureEach {
|
||||||
property("forge.logging.markers", "")
|
property("forge.logging.markers", "")
|
||||||
|
@ -53,8 +48,15 @@ loom {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven("https://maven.neoforged.net/releases/")
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
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")}")
|
modCompileOnly("maven.modrinth:embeddium:${property("embeddium_version")}")
|
||||||
|
|
1
vanillinNeoForge/gradle.properties
Normal file
1
vanillinNeoForge/gradle.properties
Normal file
|
@ -0,0 +1 @@
|
||||||
|
loom.platform = neoforge
|
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
|
@ -21,9 +21,9 @@ versionRange = "${minecraft_maven_version_range}"
|
||||||
side = "CLIENT"
|
side = "CLIENT"
|
||||||
|
|
||||||
[[dependencies.${ vanillin_id }]]
|
[[dependencies.${ vanillin_id }]]
|
||||||
modId = "forge"
|
modId = "neoforge"
|
||||||
mandatory = true
|
mandatory = true
|
||||||
versionRange = "${forge_version_range}"
|
versionRange = "${neoforge_version_range}"
|
||||||
side = "CLIENT"
|
side = "CLIENT"
|
||||||
|
|
||||||
[[dependencies.${ vanillin_id }]]
|
[[dependencies.${ vanillin_id }]]
|
Loading…
Reference in a new issue