diff options
Diffstat (limited to 'src/client/java')
| -rw-r--r-- | src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java | 10 | ||||
| -rw-r--r-- | src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java | 24 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java b/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java index 034b80c..e6de219 100644 --- a/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java +++ b/src/client/java/world/anhgelus/molehunt/client/MolehuntClient.java @@ -1,9 +1,19 @@ package world.anhgelus.molehunt.client; +import com.mojang.authlib.GameProfile; import net.fabricmc.api.ClientModInitializer; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.UUID; public class MolehuntClient implements ClientModInitializer { + public static final String MOD_ID = "molehunt"; + public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID); + + public final static GameProfile ANONYMOUS_PROFILE = new GameProfile(UUID.fromString("015f3266-4e0a-412e-9b80-1ca76af79453"), "Molehunt"); + @Override public void onInitializeClient() { } diff --git a/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java b/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java new file mode 100644 index 0000000..edbfd15 --- /dev/null +++ b/src/client/java/world/anhgelus/molehunt/client/mixin/NoSkin.java @@ -0,0 +1,24 @@ +package world.anhgelus.molehunt.client.mixin;
+
+import net.minecraft.client.network.AbstractClientPlayerEntity;
+import net.minecraft.client.util.SkinTextures;
+import net.minecraft.util.Identifier;
+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.CallbackInfoReturnable;
+import world.anhgelus.molehunt.client.MolehuntClient;
+
+@Mixin(AbstractClientPlayerEntity.class)
+public class NoSkin {
+ @Inject(at = @At("HEAD"), method = "getSkinTextures", cancellable = true)
+ public void getSkin(CallbackInfoReturnable<SkinTextures> cir) {
+ cir.setReturnValue(new SkinTextures(
+ Identifier.of(MolehuntClient.MOD_ID, "textures/skin.png"),
+ null,
+ null,
+ null,
+ SkinTextures.Model.WIDE, true)
+ );
+ }
+}
|
