Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulian233 committed Oct 7, 2024
1 parent 137ffe2 commit 2397b39
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 63 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ This mod makes the chat look better by adding animations. Such as opening chat,

Using this mod is very simple!

Install Architectury API mod and this mod, then you can use it!
First of all, you need to install Architectury API and Cloth Config API, and then you can install this module and use it!

## 👀 License

Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

使用这个模组非常简单!

首先需要安装前置模组Architectury API,然后即可安装本模组使用啦!
首先需要安装前置模组Architectury API和Cloth Config API,然后即可安装本模组使用啦!

## 👀 协议

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.wulian.chatimpressiveanimation.config.ConfigUtil;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.hud.ChatHud;
import net.minecraft.client.gui.hud.ChatHudLine;
import net.minecraft.client.gui.hud.MessageIndicator;
Expand All @@ -27,27 +26,8 @@
@Mixin(ChatHud.class)
public class ChatHudMixin {
@Shadow private int scrolledLines;
//@Shadow @Final private List<ChatHudLine> messages;
@Shadow @Final private List<ChatHudLine.Visible> visibleMessages;
@Shadow private boolean hasUnreadNewMessages;
@Shadow @Final private MinecraftClient client;
//@Shadow @Final private static final Logger LOGGER = LogUtils.getLogger();

//@Shadow private void drawIndicatorIcon(DrawContext context, int x, int y, MessageIndicator.Icon icon) { }
//@Shadow private int getIndicatorX(ChatHudLine.Visible line) { return 0; }
@Shadow private static double getMessageOpacityMultiplier(int age) { return 0; }
@Shadow private boolean isChatHidden() { return false; }
@Shadow private int getLineHeight() { return 0; }
@Shadow private boolean isChatFocused() { return false; }
//@Shadow private double toChatLineX(double x) { return 0; }
//@Shadow private double toChatLineY(double y) { return 0; }
//@Shadow private int getMessageIndex(double chatLineX, double chatLineY) { return 0; }
@Shadow public int getVisibleLineCount() { return 0; }
@Shadow public double getChatScale() {
return 0;
}
@Shadow public int getWidth() { return 0; }

@Unique private final ArrayList<Long> messageTimestamps = new ArrayList<>();

@Unique private final float fadeOffsetYScale = 0.8f; // scale * lineHeight
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.llamalad7.mixinextras.sugar.Local;
import com.wulian.chatimpressiveanimation.ChatImpressiveAnimationExpectPlatform;
import com.wulian.chatimpressiveanimation.config.ConfigUtil;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.hud.ChatHud;
import net.minecraft.client.gui.hud.ChatHudLine;
import net.minecraft.client.gui.hud.MessageIndicator;
Expand All @@ -27,27 +26,8 @@
@Mixin(ChatHud.class)
public class ChatHudMixin {
@Shadow private int scrolledLines;
//@Shadow @Final private List<ChatHudLine> messages;
@Shadow @Final private List<ChatHudLine.Visible> visibleMessages;
@Shadow private boolean hasUnreadNewMessages;
@Shadow @Final private MinecraftClient client;
//@Shadow @Final private static final Logger LOGGER = LogUtils.getLogger();

//@Shadow private void drawIndicatorIcon(DrawContext context, int x, int y, MessageIndicator.Icon icon) { }
//@Shadow private int getIndicatorX(ChatHudLine.Visible line) { return 0; }
@Shadow private static double getMessageOpacityMultiplier(int age) { return 0; }
@Shadow private boolean isChatHidden() { return false; }
@Shadow private int getLineHeight() { return 0; }
@Shadow private boolean isChatFocused() { return false; }
//@Shadow private double toChatLineX(double x) { return 0; }
//@Shadow private double toChatLineY(double y) { return 0; }
//@Shadow private int getMessageIndex(double chatLineX, double chatLineY) { return 0; }
@Shadow public int getVisibleLineCount() { return 0; }
@Shadow public double getChatScale() {
return 0;
}
@Shadow public int getWidth() { return 0; }

@Unique private final ArrayList<Long> messageTimestamps = new ArrayList<>();

@Unique private final float fadeOffsetYScale = 0.8f; // scale * lineHeight
Expand Down
2 changes: 1 addition & 1 deletion neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
modApi "me.shedaniel.cloth:cloth-config-neoforge:${rootProject.clothconfig_version}"

common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowBundle(project(path: ":common", configuration: "transformProductionForge")) { transitive false }
shadowBundle(project(path: ":common", configuration: "transformProductionNeoForge")) { transitive false }
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.llamalad7.mixinextras.sugar.Local;
import com.wulian.chatimpressiveanimation.ChatImpressiveAnimationExpectPlatform;
import com.wulian.chatimpressiveanimation.config.ConfigUtil;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.hud.ChatHud;
import net.minecraft.client.gui.hud.ChatHudLine;
import net.minecraft.client.gui.hud.MessageIndicator;
Expand All @@ -27,27 +26,8 @@
@Mixin(ChatHud.class)
public class ChatHudMixin {
@Shadow private int scrolledLines;
//@Shadow @Final private List<ChatHudLine> messages;
@Shadow @Final private List<ChatHudLine.Visible> visibleMessages;
@Shadow private boolean hasUnreadNewMessages;
@Shadow @Final private MinecraftClient client;
//@Shadow @Final private static final Logger LOGGER = LogUtils.getLogger();

//@Shadow private void drawIndicatorIcon(DrawContext context, int x, int y, MessageIndicator.Icon icon) { }
//@Shadow private int getIndicatorX(ChatHudLine.Visible line) { return 0; }
@Shadow private static double getMessageOpacityMultiplier(int age) { return 0; }
@Shadow private boolean isChatHidden() { return false; }
@Shadow private int getLineHeight() { return 0; }
@Shadow private boolean isChatFocused() { return false; }
//@Shadow private double toChatLineX(double x) { return 0; }
//@Shadow private double toChatLineY(double y) { return 0; }
//@Shadow private int getMessageIndex(double chatLineX, double chatLineY) { return 0; }
@Shadow public int getVisibleLineCount() { return 0; }
@Shadow public double getChatScale() {
return 0;
}
@Shadow public int getWidth() { return 0; }

@Unique private final ArrayList<Long> messageTimestamps = new ArrayList<>();

@Unique private final float fadeOffsetYScale = 0.8f; // scale * lineHeight
Expand Down

0 comments on commit 2397b39

Please sign in to comment.