Skip to content

Commit

Permalink
Move Fabric only mixins to the Fabric project
Browse files Browse the repository at this point in the history
  • Loading branch information
gigabit101 committed Nov 20, 2023
1 parent cf202b8 commit a9baa48
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 deletions.
4 changes: 1 addition & 3 deletions common/src/main/resources/shrink.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
"compatibilityLevel": "JAVA_17",
"minVersion": "0.7.11",
"mixins": [
"EntityMixin",
"LivingEntityMixin"
],
"injectors": {
"defaultRequire": 1
},
"client": [
"EntityRenderDispatcherMixin",
"LivingEntityRendererMixin"
"EntityRenderDispatcherMixin"
]
}
4 changes: 0 additions & 4 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ plugins {
id "com.github.johnrengelman.shadow" version "7.0.0"
}

loom {
// accessWidenerPath = file("src/main/resources/shrink.accessWidener")
}

architectury {
platformSetupLoomIde()
fabric()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.gigabit101.shrink.mixins;
package net.gigabit101.shrink.fabric.mixins;

import net.gigabit101.shrink.polylib.EntitySizeEvents;
import net.minecraft.world.entity.Entity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.gigabit101.shrink.mixins;
package net.gigabit101.shrink.fabric.mixins;

import com.mojang.blaze3d.vertex.PoseStack;
import net.gigabit101.shrink.polylib.LivingEntityRenderEvents;
Expand Down
4 changes: 3 additions & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
]
},
"mixins": [
"shrink.mixins.json"
"shrink.mixins.json",
"shrink_fabric.mixins.json"

],
"depends": {
"fabric": "*",
Expand Down
15 changes: 15 additions & 0 deletions fabric/src/main/resources/shrink_fabric.mixins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"required": true,
"package": "net.gigabit101.shrink.fabric.mixins",
"compatibilityLevel": "JAVA_17",
"minVersion": "0.7.11",
"mixins": [
"EntityMixin"
],
"injectors": {
"defaultRequire": 1
},
"client": [
"LivingEntityRendererMixin"
]
}
2 changes: 1 addition & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
mappings loom.officialMojangMappings()

forge "net.minecraftforge:forge:${rootProject.architectury.minecraft}-${rootProject.forge_version}"
// modApi "dev.architectury:architectury-forge:${rootProject.architectury_version}"
modApi "dev.architectury:architectury-forge:${rootProject.architectury_version}"

common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive false }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.gigabit101.shrink.forge;

//import dev.architectury.platform.forge.EventBuses;
import dev.architectury.platform.forge.EventBuses;
import net.gigabit101.shrink.Shrink;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
Expand All @@ -10,7 +10,7 @@ public class ShrinkModForge
{
public ShrinkModForge()
{
// EventBuses.registerModEventBus(Shrink.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
// Shrink.init();
EventBuses.registerModEventBus(Shrink.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
Shrink.init();
}
}

0 comments on commit a9baa48

Please sign in to comment.