Skip to content

Commit 19d32c2

Browse files
committed
feat: accessor chat state
[no ci]
1 parent 4dd30d2 commit 19d32c2

File tree

2 files changed

+33
-28
lines changed

2 files changed

+33
-28
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Skytils - Hypixel Skyblock Quality of Life Mod
3+
* Copyright (C) 2020-2025 Skytils
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Affero General Public License as published
7+
* by the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Affero General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Affero General Public License
16+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
*/
18+
19+
package gg.skytils.skytilsmod.mixins.transformers.accessors;
20+
21+
import net.minecraft.client.gui.hud.ChatHud;
22+
import net.minecraft.client.gui.hud.ChatHudLine;
23+
import org.spongepowered.asm.mixin.Mixin;
24+
import org.spongepowered.asm.mixin.gen.Accessor;
25+
26+
import java.util.List;
27+
28+
@Mixin(ChatHud.ChatState.class)
29+
public interface AccessorChatState {
30+
@Accessor
31+
List<ChatHudLine> getMessages();
32+
}

mod/src/main/resources/mixins.skytils.json

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"refmap": "mixins.skytils.refmap.json",
77
"mixins": [
88
"MixinMinecraft",
9+
"accessors.AccessorChatState",
910
"accessors.AccessorEntity",
1011
"accessors.AccessorEntityArmorStand",
1112
"accessors.AccessorEnumChatFormatting",
@@ -66,34 +67,6 @@
6667
"util.MixinChatStyle",
6768
"util.MixinUtil",
6869
"world.MixinWorld"
69-
//#if MC==10809
70-
//$$ ,
71-
//$$ "accessors.AccessorC0EPacketClickWindow",
72-
//$$ "accessors.AccessorChatComponentText",
73-
//$$ "accessors.AccessorCommandHandler",
74-
//$$ "accessors.AccessorEntitySlime",
75-
//$$ "accessors.AccessorEnumDyeColor",
76-
//$$ "accessors.AccessorGuiEditSign",
77-
//$$ "accessors.AccessorGuiStreamUnavailable",
78-
//$$ "accessors.AccessorRenderItem",
79-
//$$ "accessors.AccessorRenderManager",
80-
//$$ "accessors.AccessorServerListEntryNormal",
81-
//$$ "block.MixinBlockSlab",
82-
//$$ "block.MixinBlockStairs",
83-
//$$ "command.MixinCommandHandler"
84-
//$$ "forge.MixinClientCommandHandler",
85-
//$$ "forge.MixinSplashProgressThread",
86-
//$$ "neu.MixinCustomAH",
87-
//$$ "neu.MixinGuiProfileViewer",
88-
//$$ "neu.MixinStorageManager",
89-
//$$ "neu.MixinStorageOverlay",
90-
//$$ "neu.MixinTradeWindow",
91-
//$$ "sba.MixinContainerPreviewManager",
92-
//$$ "sk1eroam.MixinAnimationHandler",
93-
//$$ "skyclientupdater.MixinUpdateChecker",
94-
//$$ "skyhanni.MixinHideArmor",
95-
//$$ "MixinIChatComponentSerializer"
96-
//#endif
9770
],
9871
"verbose": true,
9972
"client": [

0 commit comments

Comments
 (0)