Class AdvancementTab
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.screen.advancement.AdvancementTab
@Environment(CLIENT) public class AdvancementTab extends DrawableHelper
- Mappings:
Namespace Name official dvp
intermediary net/minecraft/class_454
named net/minecraft/client/gui/screen/advancement/AdvancementTab
-
Field Summary
Fields Modifier and Type Field Description private float
alpha
private MinecraftClient
client
private AdvancementDisplay
display
private ItemStack
icon
private int
index
private boolean
initialized
private int
maxPanX
private int
maxPanY
private int
minPanX
private int
minPanY
private double
originX
private double
originY
private Advancement
root
private AdvancementWidget
rootWidget
private AdvancementsScreen
screen
private Text
title
private AdvancementTabType
type
private Map<Advancement,AdvancementWidget>
widgets
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description AdvancementTab(MinecraftClient client, AdvancementsScreen screen, AdvancementTabType type, int index, Advancement root, AdvancementDisplay display)
-
Method Summary
Modifier and Type Method Description void
addAdvancement(Advancement advancement)
private void
addWidget(AdvancementWidget widget, Advancement advancement)
static AdvancementTab
create(MinecraftClient minecraft, AdvancementsScreen screen, int index, Advancement root)
void
drawBackground(MatrixStack matrices, int int2, int int3, boolean bool)
void
drawIcon(int x, int y, ItemRenderer itemRenderer)
void
drawWidgetTooltip(MatrixStack matrices, int int2, int int3, int int4, int int5)
Advancement
getRoot()
AdvancementsScreen
getScreen()
Text
getTitle()
AdvancementWidget
getWidget(Advancement advancement)
boolean
isClickOnTab(int screenX, int screenY, double mouseX, double mouseY)
void
move(double offsetX, double offsetY)
void
render(MatrixStack matrices)
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector official a
Ldvp;a:Ldqk;
intermediary field_2680
Lnet/minecraft/class_454;field_2680:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;client:Lnet/minecraft/client/MinecraftClient;
-
screen
- Mappings:
Namespace Name Mixin selector official b
Ldvp;b:Ldvt;
intermediary field_2687
Lnet/minecraft/class_454;field_2687:Lnet/minecraft/class_457;
named screen
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;screen:Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;
-
type
- Mappings:
Namespace Name Mixin selector official c
Ldvp;c:Ldvq;
intermediary field_2684
Lnet/minecraft/class_454;field_2684:Lnet/minecraft/class_453;
named type
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;type:Lnet/minecraft/client/gui/screen/advancement/AdvancementTabType;
-
index
private final int index- Mappings:
Namespace Name Mixin selector official d
Ldvp;d:I
intermediary field_2681
Lnet/minecraft/class_454;field_2681:I
named index
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;index:I
-
root
- Mappings:
Namespace Name Mixin selector official e
Ldvp;e:Ly;
intermediary field_2682
Lnet/minecraft/class_454;field_2682:Lnet/minecraft/class_161;
named root
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;root:Lnet/minecraft/advancement/Advancement;
-
display
- Mappings:
Namespace Name Mixin selector official i
Ldvp;i:Lah;
intermediary field_2695
Lnet/minecraft/class_454;field_2695:Lnet/minecraft/class_185;
named display
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;display:Lnet/minecraft/advancement/AdvancementDisplay;
-
icon
- Mappings:
Namespace Name Mixin selector official j
Ldvp;j:Lbnv;
intermediary field_2697
Lnet/minecraft/class_454;field_2697:Lnet/minecraft/class_1799;
named icon
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;icon:Lnet/minecraft/item/ItemStack;
-
title
- Mappings:
Namespace Name Mixin selector official k
Ldvp;k:Loi;
intermediary field_2686
Lnet/minecraft/class_454;field_2686:Lnet/minecraft/class_2561;
named title
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;title:Lnet/minecraft/text/Text;
-
rootWidget
- Mappings:
Namespace Name Mixin selector official l
Ldvp;l:Ldvr;
intermediary field_2696
Lnet/minecraft/class_454;field_2696:Lnet/minecraft/class_456;
named rootWidget
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;rootWidget:Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
-
widgets
- Mappings:
Namespace Name Mixin selector official m
Ldvp;m:Ljava/util/Map;
intermediary field_2685
Lnet/minecraft/class_454;field_2685:Ljava/util/Map;
named widgets
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;widgets:Ljava/util/Map;
-
originX
private double originX- Mappings:
Namespace Name Mixin selector official n
Ldvp;n:D
intermediary field_2690
Lnet/minecraft/class_454;field_2690:D
named originX
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;originX:D
-
originY
private double originY- Mappings:
Namespace Name Mixin selector official o
Ldvp;o:D
intermediary field_2689
Lnet/minecraft/class_454;field_2689:D
named originY
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;originY:D
-
minPanX
private int minPanX- Mappings:
Namespace Name Mixin selector official p
Ldvp;p:I
intermediary field_2694
Lnet/minecraft/class_454;field_2694:I
named minPanX
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;minPanX:I
-
minPanY
private int minPanY- Mappings:
Namespace Name Mixin selector official q
Ldvp;q:I
intermediary field_2693
Lnet/minecraft/class_454;field_2693:I
named minPanY
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;minPanY:I
-
maxPanX
private int maxPanX- Mappings:
Namespace Name Mixin selector official r
Ldvp;r:I
intermediary field_2692
Lnet/minecraft/class_454;field_2692:I
named maxPanX
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;maxPanX:I
-
maxPanY
private int maxPanY- Mappings:
Namespace Name Mixin selector official s
Ldvp;s:I
intermediary field_2691
Lnet/minecraft/class_454;field_2691:I
named maxPanY
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;maxPanY:I
-
alpha
private float alpha- Mappings:
Namespace Name Mixin selector official t
Ldvp;t:F
intermediary field_2688
Lnet/minecraft/class_454;field_2688:F
named alpha
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;alpha:F
-
initialized
private boolean initialized- Mappings:
Namespace Name Mixin selector official u
Ldvp;u:Z
intermediary field_2683
Lnet/minecraft/class_454;field_2683:Z
named initialized
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;initialized:Z
-
-
Constructor Details
-
AdvancementTab
public AdvancementTab(MinecraftClient client, AdvancementsScreen screen, AdvancementTabType type, int index, Advancement root, AdvancementDisplay display)- Mappings:
Namespace Name Mixin selector official <init>
Ldvp;<init>(Ldqk;Ldvt;Ldvq;ILy;Lah;)V
intermediary <init>
Lnet/minecraft/class_454;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_457;Lnet/minecraft/class_453;ILnet/minecraft/class_161;Lnet/minecraft/class_185;)V
named <init>
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;Lnet/minecraft/client/gui/screen/advancement/AdvancementTabType;ILnet/minecraft/advancement/Advancement;Lnet/minecraft/advancement/AdvancementDisplay;)V
-
-
Method Details
-
getRoot
- Mappings:
Namespace Name Mixin selector official c
Ldvp;c()Ly;
intermediary method_2307
Lnet/minecraft/class_454;method_2307()Lnet/minecraft/class_161;
named getRoot
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;getRoot()Lnet/minecraft/advancement/Advancement;
-
getTitle
- Mappings:
Namespace Name Mixin selector official d
Ldvp;d()Loi;
intermediary method_2309
Lnet/minecraft/class_454;method_2309()Lnet/minecraft/class_2561;
named getTitle
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;getTitle()Lnet/minecraft/text/Text;
-
drawBackground
- Mappings:
Namespace Name Mixin selector official a
Ldvp;a(Ldlr;IIZ)V
intermediary method_2311
Lnet/minecraft/class_454;method_2311(Lnet/minecraft/class_4587;IIZ)V
named drawBackground
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;drawBackground(Lnet/minecraft/client/util/math/MatrixStack;IIZ)V
-
drawIcon
- Mappings:
Namespace Name Mixin selector official a
Ldvp;a(IILenf;)V
intermediary method_2315
Lnet/minecraft/class_454;method_2315(IILnet/minecraft/class_918;)V
named drawIcon
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;drawIcon(IILnet/minecraft/client/render/item/ItemRenderer;)V
-
render
- Mappings:
Namespace Name Mixin selector official a
Ldvp;a(Ldlr;)V
intermediary method_2310
Lnet/minecraft/class_454;method_2310(Lnet/minecraft/class_4587;)V
named render
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;render(Lnet/minecraft/client/util/math/MatrixStack;)V
-
drawWidgetTooltip
- Mappings:
Namespace Name Mixin selector official c
Ldvp;c(Ldlr;IIII)V
intermediary method_2314
Lnet/minecraft/class_454;method_2314(Lnet/minecraft/class_4587;IIII)V
named drawWidgetTooltip
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;drawWidgetTooltip(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-
isClickOnTab
public boolean isClickOnTab(int screenX, int screenY, double mouseX, double mouseY)- Mappings:
Namespace Name Mixin selector official a
Ldvp;a(IIDD)Z
intermediary method_2316
Lnet/minecraft/class_454;method_2316(IIDD)Z
named isClickOnTab
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;isClickOnTab(IIDD)Z
-
create
@Nullable public static AdvancementTab create(MinecraftClient minecraft, AdvancementsScreen screen, int index, Advancement root)- Mappings:
Namespace Name Mixin selector official a
Ldvp;a(Ldqk;Ldvt;ILy;)Ldvp;
intermediary method_2317
Lnet/minecraft/class_454;method_2317(Lnet/minecraft/class_310;Lnet/minecraft/class_457;ILnet/minecraft/class_161;)Lnet/minecraft/class_454;
named create
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;create(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;ILnet/minecraft/advancement/Advancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;
-
move
public void move(double offsetX, double offsetY)- Mappings:
Namespace Name Mixin selector official a
Ldvp;a(DD)V
intermediary method_2313
Lnet/minecraft/class_454;method_2313(DD)V
named move
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;move(DD)V
-
addAdvancement
- Mappings:
Namespace Name Mixin selector official a
Ldvp;a(Ly;)V
intermediary method_2318
Lnet/minecraft/class_454;method_2318(Lnet/minecraft/class_161;)V
named addAdvancement
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;addAdvancement(Lnet/minecraft/advancement/Advancement;)V
-
addWidget
- Mappings:
Namespace Name Mixin selector official a
Ldvp;a(Ldvr;Ly;)V
intermediary method_2319
Lnet/minecraft/class_454;method_2319(Lnet/minecraft/class_456;Lnet/minecraft/class_161;)V
named addWidget
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;addWidget(Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;Lnet/minecraft/advancement/Advancement;)V
-
getWidget
- Mappings:
Namespace Name Mixin selector official b
Ldvp;b(Ly;)Ldvr;
intermediary method_2308
Lnet/minecraft/class_454;method_2308(Lnet/minecraft/class_161;)Lnet/minecraft/class_456;
named getWidget
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;getWidget(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
-
getScreen
- Mappings:
Namespace Name Mixin selector official f
Ldvp;f()Ldvt;
intermediary method_2312
Lnet/minecraft/class_454;method_2312()Lnet/minecraft/class_457;
named getScreen
Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;getScreen()Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;
-