Merge pull request 'remove client split' (#1) from master into slave
Some checks failed
build / build (push) Has been cancelled
Some checks failed
build / build (push) Has been cancelled
Reviewed-on: #1
This commit is contained in:
commit
6d39b67f8d
12
build.gradle
12
build.gradle
@ -18,18 +18,6 @@ repositories {
|
||||
// for more information about repositories.
|
||||
}
|
||||
|
||||
loom {
|
||||
splitEnvironmentSourceSets()
|
||||
|
||||
mods {
|
||||
"midcraft" {
|
||||
sourceSet sourceSets.main
|
||||
sourceSet sourceSets.client
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fabricApi {
|
||||
configureDataGeneration {
|
||||
client = true
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
package fullgream.midcraft;
|
||||
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
|
||||
public class MidcraftClient implements ClientModInitializer {
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
// This entrypoint is suitable for setting up client-specific logic, such as rendering.
|
||||
}
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
package fullgream.midcraft.mixin.client;
|
||||
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(MinecraftClient.class)
|
||||
public class ExampleClientMixin {
|
||||
@Inject(at = @At("HEAD"), method = "run")
|
||||
private void init(CallbackInfo info) {
|
||||
// This code is injected into the start of MinecraftClient.run()V
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "fullgream.midcraft.mixin.client",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"client": [
|
||||
"ExampleClientMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
@ -18,19 +18,12 @@
|
||||
"main": [
|
||||
"fullgream.midcraft.Midcraft"
|
||||
],
|
||||
"client": [
|
||||
"fullgream.midcraft.MidcraftClient"
|
||||
],
|
||||
"fabric-datagen": [
|
||||
"fullgream.midcraft.MidcraftDataGenerator"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"midcraft.mixins.json",
|
||||
{
|
||||
"config": "midcraft.client.mixins.json",
|
||||
"environment": "client"
|
||||
}
|
||||
"midcraft.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.17.2",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user