aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl3/mixin/TabNavigationBarAccessor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/isxander/yacl3/mixin/TabNavigationBarAccessor.java')
-rw-r--r--src/main/java/dev/isxander/yacl3/mixin/TabNavigationBarAccessor.java25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/main/java/dev/isxander/yacl3/mixin/TabNavigationBarAccessor.java b/src/main/java/dev/isxander/yacl3/mixin/TabNavigationBarAccessor.java
index f0da81d..8850390 100644
--- a/src/main/java/dev/isxander/yacl3/mixin/TabNavigationBarAccessor.java
+++ b/src/main/java/dev/isxander/yacl3/mixin/TabNavigationBarAccessor.java
@@ -7,28 +7,27 @@ import net.minecraft.client.gui.components.tabs.TabManager;
import net.minecraft.client.gui.components.tabs.TabNavigationBar;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
-import org.spongepowered.asm.mixin.gen.Invoker;
@Mixin(TabNavigationBar.class)
public interface TabNavigationBarAccessor {
/*? if >1.20.4 {*//*
- @Accessor
- net.minecraft.client.gui.layouts.LinearLayout getLayout();
+ @Accessor("layout")
+ net.minecraft.client.gui.layouts.LinearLayout yacl$getLayout();
*//*? } else {*/
- @Accessor
- net.minecraft.client.gui.layouts.GridLayout getLayout();
+ @Accessor("layout")
+ net.minecraft.client.gui.layouts.GridLayout yacl$getLayout();
/*?}*/
- @Accessor
- int getWidth();
+ @Accessor("width")
+ int yacl$getWidth();
- @Accessor
- TabManager getTabManager();
+ @Accessor("tabManager")
+ TabManager yacl$getTabManager();
- @Accessor
- ImmutableList<Tab> getTabs();
+ @Accessor("tabs")
+ ImmutableList<Tab> yacl$getTabs();
- @Accessor
- ImmutableList<TabButton> getTabButtons();
+ @Accessor("tabButtons")
+ ImmutableList<TabButton> yacl$getTabButtons();
}