Skip to content

Commit

Permalink
Removed Mixins for 1.21.2 & 1.21.3 Support #36
Browse files Browse the repository at this point in the history
  • Loading branch information
XDPXI committed Nov 16, 2024
1 parent aedd383 commit 88426c3
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 227 deletions.
28 changes: 0 additions & 28 deletions src/client/java/dev/xdpxi/xdlib/XDsLibraryClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.texture.NativeImage;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.resource.InputSupplier;
import net.minecraft.world.World;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -75,30 +71,6 @@ public static float getRainGradient(World world, float original) {
return original;
}

public static void setIcon(InputSupplier<InputStream> icon) {
((IconSetter) MinecraftClient.getInstance()).ztrolixLibs$setIcon(icon);
}

public static void resetIcon() {
((IconSetter) MinecraftClient.getInstance()).ztrolixLibs$resetIcon();
}

public static void setIcon(NativeImage nativeImage) {
try {
byte[] bytes = nativeImage.getBytes();
setIcon(bytes);
} catch (IOException e) {
LOGGER.error("Could not set icon: ", e);
} finally {
nativeImage.close();
}
}

public static void setIcon(byte[] favicon) {
if (favicon == null) resetIcon();
else setIcon(() -> new ByteArrayInputStream(favicon));
}

public boolean isModLoaded(String modID) {
return FabricLoader.getInstance().isModLoaded(modID);
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions src/client/resources/xdlib.client.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@
"GlDebugMixin",
"HideModdedMixin",
"IntegratedServerLoaderMixin",
"ItemRendererMixin",
"MessageHandlerMixin",
"MiddleClickFix",
"MinecraftClientMixin",
"MinecraftClientMixin2",
"MinecraftMixin",
"MixinKeyboard",
"ModBadgeRendererMixin",
"MojangBlockListSupplierMixin",
"MouseMixin",
"MultiplayerServerListWidgetMixin",
"MultiplayerServerListWidgetServerEntryMixin",
"PlayerEntityMixin",
"ProgressScreenMixin",
"ScreenAccessor",
Expand Down

0 comments on commit 88426c3

Please sign in to comment.