Skip to content

Commit

Permalink
move ALL client classes to client source set
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDeathlyCow committed Nov 13, 2024
1 parent 8ec255d commit d814a16
Show file tree
Hide file tree
Showing 51 changed files with 47 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.github.thedeathlycow.frostiful.client.registry.FParticleFactoryRegistry;
import com.github.thedeathlycow.frostiful.registry.FItems;
import com.github.thedeathlycow.frostiful.server.network.PointWindSpawnPacket;
import com.github.thedeathlycow.frostiful.server.network.PointWindSpawnPacketListener;
import com.github.thedeathlycow.frostiful.client.network.PointWindSpawnPacketListener;
import com.github.thedeathlycow.thermoo.api.client.StatusBarOverlayRenderEvents;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.compat;
package com.github.thedeathlycow.frostiful.client.compat;

import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client;
package com.github.thedeathlycow.frostiful.client.mixin;

import com.github.thedeathlycow.frostiful.client.render.feature.CustomArmorTrimRenderer;
import net.minecraft.client.render.VertexConsumerProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client;
package com.github.thedeathlycow.frostiful.client.mixin;

import com.github.thedeathlycow.frostiful.item.cloak.AbstractFrostologyCloakItem;
import com.github.thedeathlycow.frostiful.registry.tag.FItemTags;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client;
package com.github.thedeathlycow.frostiful.client.mixin;

import com.github.thedeathlycow.frostiful.Frostiful;
import com.github.thedeathlycow.frostiful.compat.FrostifulIntegrations;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client;
package com.github.thedeathlycow.frostiful.client.mixin;

import net.minecraft.client.gui.screen.SplashTextRenderer;
import net.minecraft.client.resource.SplashTextResourceSupplier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client;
package com.github.thedeathlycow.frostiful.client.mixin;

import com.github.thedeathlycow.frostiful.Frostiful;
import com.github.thedeathlycow.frostiful.client.registry.FTexturedRenderLayers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client.entity_renderer;
package com.github.thedeathlycow.frostiful.client.mixin.entity_renderer;

import com.github.thedeathlycow.frostiful.client.BrushableTextures;
import com.github.thedeathlycow.frostiful.entity.FBrushable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client.entity_renderer;
package com.github.thedeathlycow.frostiful.client.mixin.entity_renderer;

import com.github.thedeathlycow.frostiful.entity.RootedEntity;
import net.fabricmc.api.EnvType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client.entity_renderer;
package com.github.thedeathlycow.frostiful.client.mixin.entity_renderer;

import com.github.thedeathlycow.frostiful.survival.SurvivalUtils;
import net.fabricmc.api.EnvType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client.gui;
package com.github.thedeathlycow.frostiful.client.mixin.gui;

import com.llamalad7.mixinextras.injector.ModifyReturnValue;
import net.minecraft.client.gui.hud.InGameHud;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.github.thedeathlycow.frostiful.mixins.client.gui;
package com.github.thedeathlycow.frostiful.client.mixin.gui;

import com.github.thedeathlycow.frostiful.client.gui.FrostOverlayRenderer;
import com.github.thedeathlycow.frostiful.client.gui.RootedOverlayRenderer;
import com.github.thedeathlycow.frostiful.entity.RootedEntity;
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import com.llamalad7.mixinextras.injector.v2.WrapWithCondition;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.DrawContext;
Expand All @@ -15,7 +14,6 @@
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.ModifyArg;
import org.spongepowered.asm.mixin.injection.Slice;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client.gui;
package com.github.thedeathlycow.frostiful.client.mixin.gui;

import com.github.thedeathlycow.frostiful.Frostiful;
import com.github.thedeathlycow.frostiful.config.group.ClientConfigGroup;
Expand All @@ -8,7 +8,6 @@
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.Camera;
import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.LivingEntity;
Expand All @@ -18,8 +17,6 @@
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Environment(EnvType.CLIENT)
@Mixin(GameRenderer.class)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client.ice_skate_fx;
package com.github.thedeathlycow.frostiful.client.mixin.ice_skate_fx;

import com.github.thedeathlycow.frostiful.entity.IceSkater;
import net.fabricmc.api.EnvType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.thedeathlycow.frostiful.mixins.client.ice_skate_fx;
package com.github.thedeathlycow.frostiful.client.mixin.ice_skate_fx;

import com.github.thedeathlycow.frostiful.entity.IceSkater;
import net.minecraft.client.model.ModelPart;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.github.thedeathlycow.frostiful.server.network;
package com.github.thedeathlycow.frostiful.client.network;

import com.github.thedeathlycow.frostiful.particle.WindParticleEffect;
import com.github.thedeathlycow.frostiful.registry.FSoundEvents;
import com.github.thedeathlycow.frostiful.server.network.PointWindSpawnPacket;
import com.github.thedeathlycow.frostiful.survival.wind.PointWindSpawnStrategy;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
Expand Down
24 changes: 24 additions & 0 deletions src/client/resources/frostiful.client.mixins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"required": true,
"minVersion": "0.8",
"package": "com.github.thedeathlycow.frostiful.client.mixin",
"compatibilityLevel": "JAVA_21",
"client": [
"ArmorFeatureRendererMixin",
"CapeFeatureRendererMixin",
"DrippingWetPlayerMixin",
"SplashTextResourceSupplierMixin",
"SpriteAtlasManagerMixin",
"entity_renderer.PolarBearShearedTextureMixin",
"entity_renderer.RootedEffectRenderer",
"entity_renderer.ShakingRendererMixin",
"gui.HeartTypeMixin",
"gui.InGameHudMixin",
"gui.ShiveringRenderer",
"ice_skate_fx.GameRendererMixin",
"ice_skate_fx.ModelMixin"
],
"injectors": {
"defaultRequire": 1
}
}
8 changes: 6 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@
"com.github.thedeathlycow.frostiful.registry.FComponents"
],
"colorfulhearts": [
"com.github.thedeathlycow.frostiful.compat.ColorfulHeartsIntegration"
"com.github.thedeathlycow.frostiful.client.compat.ColorfulHeartsIntegration"
]
},
"mixins": [
"frostiful.mixins.json"
"frostiful.mixins.json",
{
"config": "frostiful.client.mixins.json",
"environment": "client"
}
],
"depends": {
"fabricloader": ">=0.15.11",
Expand Down
15 changes: 0 additions & 15 deletions src/main/resources/frostiful.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,6 @@
"world.WindSpawningMixin",
"world.spawner.PatrolSpawnerMixin"
],
"client": [
"client.ArmorFeatureRendererMixin",
"client.CapeFeatureRendererMixin",
"client.DrippingWetPlayerMixin",
"client.SplashTextResourceSupplierMixin",
"client.SpriteAtlasManagerMixin",
"client.entity_renderer.PolarBearShearedTextureMixin",
"client.entity_renderer.RootedEffectRenderer",
"client.entity_renderer.ShakingRendererMixin",
"client.gui.HeartTypeMixin",
"client.gui.InGameHudMixin",
"client.gui.ShiveringRenderer",
"client.ice_skate_fx.GameRendererMixin",
"client.ice_skate_fx.ModelMixin"
],
"injectors": {
"defaultRequire": 1
}
Expand Down

0 comments on commit d814a16

Please sign in to comment.