blob: 3ad331f28faeb2eb01ca3fa93e8333bdd4476f17 (
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
|
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;
@Mixin(TabNavigationBar.class)
public interface TabNavigationBarAccessor {
/*? if >1.20.4 {*/
@Accessor("layout")
net.minecraft.client.gui.layouts.LinearLayout yacl$getLayout();
/*?} else {*/
/*@Accessor("layout")
net.minecraft.client.gui.layouts.GridLayout yacl$getLayout();
*//*?}*/
@Accessor("width")
int yacl$getWidth();
@Accessor("tabManager")
TabManager yacl$getTabManager();
@Accessor("tabs")
ImmutableList<Tab> yacl$getTabs();
@Accessor("tabButtons")
ImmutableList<TabButton> yacl$getTabButtons();
}
|