Package net.minecraft.advancement
Class AdvancementDisplay
java.lang.Object
net.minecraft.advancement.AdvancementDisplay
public class AdvancementDisplay extends Object
- Mappings:
Namespace Name official ah
intermediary net/minecraft/class_185
named net/minecraft/advancement/AdvancementDisplay
-
Field Summary
Fields Modifier and Type Field Description private boolean
announceToChat
private Identifier
background
private Text
description
private AdvancementFrame
frame
private boolean
hidden
private ItemStack
icon
private boolean
showToast
private Text
title
private float
xPos
private float
yPos
-
Constructor Summary
Constructors Constructor Description AdvancementDisplay(ItemStack icon, Text title, Text description, Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)
-
Method Summary
Modifier and Type Method Description static AdvancementDisplay
fromJson(JsonObject obj)
static AdvancementDisplay
fromPacket(PacketByteBuf buf)
Identifier
getBackground()
Text
getDescription()
AdvancementFrame
getFrame()
ItemStack
getIcon()
Text
getTitle()
float
getX()
float
getY()
private static ItemStack
iconFromJson(JsonObject json)
private JsonObject
iconToJson()
boolean
isHidden()
void
setPosition(float xPos, float yPos)
boolean
shouldAnnounceToChat()
boolean
shouldShowToast()
JsonElement
toJson()
void
toPacket(PacketByteBuf buf)
-
Field Details
-
title
- Mappings:
Namespace Name Mixin selector official a
Lah;a:Loi;
intermediary field_1240
Lnet/minecraft/class_185;field_1240:Lnet/minecraft/class_2561;
named title
Lnet/minecraft/advancement/AdvancementDisplay;title:Lnet/minecraft/text/Text;
-
description
- Mappings:
Namespace Name Mixin selector official b
Lah;b:Loi;
intermediary field_1242
Lnet/minecraft/class_185;field_1242:Lnet/minecraft/class_2561;
named description
Lnet/minecraft/advancement/AdvancementDisplay;description:Lnet/minecraft/text/Text;
-
icon
- Mappings:
Namespace Name Mixin selector official c
Lah;c:Lbnv;
intermediary field_1241
Lnet/minecraft/class_185;field_1241:Lnet/minecraft/class_1799;
named icon
Lnet/minecraft/advancement/AdvancementDisplay;icon:Lnet/minecraft/item/ItemStack;
-
background
- Mappings:
Namespace Name Mixin selector official d
Lah;d:Lwb;
intermediary field_1243
Lnet/minecraft/class_185;field_1243:Lnet/minecraft/class_2960;
named background
Lnet/minecraft/advancement/AdvancementDisplay;background:Lnet/minecraft/util/Identifier;
-
frame
- Mappings:
Namespace Name Mixin selector official e
Lah;e:Lai;
intermediary field_1237
Lnet/minecraft/class_185;field_1237:Lnet/minecraft/class_189;
named frame
Lnet/minecraft/advancement/AdvancementDisplay;frame:Lnet/minecraft/advancement/AdvancementFrame;
-
showToast
private final boolean showToast- Mappings:
Namespace Name Mixin selector official f
Lah;f:Z
intermediary field_1239
Lnet/minecraft/class_185;field_1239:Z
named showToast
Lnet/minecraft/advancement/AdvancementDisplay;showToast:Z
-
announceToChat
private final boolean announceToChat- Mappings:
Namespace Name Mixin selector official g
Lah;g:Z
intermediary field_1238
Lnet/minecraft/class_185;field_1238:Z
named announceToChat
Lnet/minecraft/advancement/AdvancementDisplay;announceToChat:Z
-
xPos
private float xPos- Mappings:
Namespace Name Mixin selector official i
Lah;i:F
intermediary field_1245
Lnet/minecraft/class_185;field_1245:F
named xPos
Lnet/minecraft/advancement/AdvancementDisplay;xPos:F
-
yPos
private float yPos- Mappings:
Namespace Name Mixin selector official j
Lah;j:F
intermediary field_1244
Lnet/minecraft/class_185;field_1244:F
named yPos
Lnet/minecraft/advancement/AdvancementDisplay;yPos:F
-
-
Constructor Details
-
AdvancementDisplay
public AdvancementDisplay(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)- Mappings:
Namespace Name Mixin selector official <init>
Lah;<init>(Lbnv;Loi;Loi;Lwb;Lai;ZZZ)V
intermediary <init>
Lnet/minecraft/class_185;<init>(Lnet/minecraft/class_1799;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2960;Lnet/minecraft/class_189;ZZZ)V
named <init>
Lnet/minecraft/advancement/AdvancementDisplay;<init>(Lnet/minecraft/item/ItemStack;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/util/Identifier;Lnet/minecraft/advancement/AdvancementFrame;ZZZ)V
-
-
Method Details
-
setPosition
public void setPosition(float xPos, float yPos)- Mappings:
Namespace Name Mixin selector official a
Lah;a(FF)V
intermediary method_816
Lnet/minecraft/class_185;method_816(FF)V
named setPosition
Lnet/minecraft/advancement/AdvancementDisplay;setPosition(FF)V
-
getTitle
- Mappings:
Namespace Name Mixin selector official a
Lah;a()Loi;
intermediary method_811
Lnet/minecraft/class_185;method_811()Lnet/minecraft/class_2561;
named getTitle
Lnet/minecraft/advancement/AdvancementDisplay;getTitle()Lnet/minecraft/text/Text;
-
getDescription
- Mappings:
Namespace Name Mixin selector official b
Lah;b()Loi;
intermediary method_817
Lnet/minecraft/class_185;method_817()Lnet/minecraft/class_2561;
named getDescription
Lnet/minecraft/advancement/AdvancementDisplay;getDescription()Lnet/minecraft/text/Text;
-
getIcon
- Mappings:
Namespace Name Mixin selector official c
Lah;c()Lbnv;
intermediary method_821
Lnet/minecraft/class_185;method_821()Lnet/minecraft/class_1799;
named getIcon
Lnet/minecraft/advancement/AdvancementDisplay;getIcon()Lnet/minecraft/item/ItemStack;
-
getBackground
- Mappings:
Namespace Name Mixin selector official d
Lah;d()Lwb;
intermediary method_812
Lnet/minecraft/class_185;method_812()Lnet/minecraft/class_2960;
named getBackground
Lnet/minecraft/advancement/AdvancementDisplay;getBackground()Lnet/minecraft/util/Identifier;
-
getFrame
- Mappings:
Namespace Name Mixin selector official e
Lah;e()Lai;
intermediary method_815
Lnet/minecraft/class_185;method_815()Lnet/minecraft/class_189;
named getFrame
Lnet/minecraft/advancement/AdvancementDisplay;getFrame()Lnet/minecraft/advancement/AdvancementFrame;
-
getX
- Mappings:
Namespace Name Mixin selector official f
Lah;f()F
intermediary method_818
Lnet/minecraft/class_185;method_818()F
named getX
Lnet/minecraft/advancement/AdvancementDisplay;getX()F
-
getY
- Mappings:
Namespace Name Mixin selector official g
Lah;g()F
intermediary method_819
Lnet/minecraft/class_185;method_819()F
named getY
Lnet/minecraft/advancement/AdvancementDisplay;getY()F
-
shouldShowToast
- Mappings:
Namespace Name Mixin selector official h
Lah;h()Z
intermediary method_823
Lnet/minecraft/class_185;method_823()Z
named shouldShowToast
Lnet/minecraft/advancement/AdvancementDisplay;shouldShowToast()Z
-
shouldAnnounceToChat
public boolean shouldAnnounceToChat()- Mappings:
Namespace Name Mixin selector official i
Lah;i()Z
intermediary method_808
Lnet/minecraft/class_185;method_808()Z
named shouldAnnounceToChat
Lnet/minecraft/advancement/AdvancementDisplay;shouldAnnounceToChat()Z
-
isHidden
public boolean isHidden()- Mappings:
Namespace Name Mixin selector official j
Lah;j()Z
intermediary method_824
Lnet/minecraft/class_185;method_824()Z
named isHidden
Lnet/minecraft/advancement/AdvancementDisplay;isHidden()Z
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Lah;a(Lcom/google/gson/JsonObject;)Lah;
intermediary method_809
Lnet/minecraft/class_185;method_809(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_185;
named fromJson
Lnet/minecraft/advancement/AdvancementDisplay;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/advancement/AdvancementDisplay;
-
iconFromJson
- Mappings:
Namespace Name Mixin selector official b
Lah;b(Lcom/google/gson/JsonObject;)Lbnv;
intermediary method_822
Lnet/minecraft/class_185;method_822(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1799;
named iconFromJson
Lnet/minecraft/advancement/AdvancementDisplay;iconFromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/item/ItemStack;
-
toPacket
- Mappings:
Namespace Name Mixin selector official a
Lah;a(Lnw;)V
intermediary method_813
Lnet/minecraft/class_185;method_813(Lnet/minecraft/class_2540;)V
named toPacket
Lnet/minecraft/advancement/AdvancementDisplay;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
fromPacket
- Mappings:
Namespace Name Mixin selector official b
Lah;b(Lnw;)Lah;
intermediary method_820
Lnet/minecraft/class_185;method_820(Lnet/minecraft/class_2540;)Lnet/minecraft/class_185;
named fromPacket
Lnet/minecraft/advancement/AdvancementDisplay;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/AdvancementDisplay;
-
toJson
- Mappings:
Namespace Name Mixin selector official k
Lah;k()Lcom/google/gson/JsonElement;
intermediary method_814
Lnet/minecraft/class_185;method_814()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/advancement/AdvancementDisplay;toJson()Lcom/google/gson/JsonElement;
-
iconToJson
- Mappings:
Namespace Name Mixin selector official l
Lah;l()Lcom/google/gson/JsonObject;
intermediary method_810
Lnet/minecraft/class_185;method_810()Lcom/google/gson/JsonObject;
named iconToJson
Lnet/minecraft/advancement/AdvancementDisplay;iconToJson()Lcom/google/gson/JsonObject;
-