aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl3/mixin/TabNavigationBarAccessor.java
blob: f0da81d7639e5c393c3dbea9217f9bc193d1b353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package dev.isxander.yacl3.mixin;

import com.google.common.collect.ImmutableList;
import net.minecraft.client.gui.components.TabButton;
import net.minecraft.client.gui.components.tabs.Tab;
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();
    *//*? } else {*/
    @Accessor
    net.minecraft.client.gui.layouts.GridLayout getLayout();
    /*?}*/

    @Accessor
    int getWidth();

    @Accessor
    TabManager getTabManager();

    @Accessor
    ImmutableList<Tab> getTabs();

    @Accessor
    ImmutableList<TabButton> getTabButtons();

}