Package net.minecraft.advancement
Class AdvancementDisplay
java.lang.Object
net.minecraft.advancement.AdvancementDisplay
- Mappings:
Namespace Name official ar
intermediary net/minecraft/class_185
named net/minecraft/advancement/AdvancementDisplay
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final Optional<Identifier>
static final com.mojang.serialization.Codec<AdvancementDisplay>
private final Text
private final AdvancementFrame
private final boolean
private final ItemStack
private final boolean
private final Text
private float
private float
-
Constructor Summary
ConstructorDescriptionAdvancementDisplay
(ItemStack icon, Text title, Text description, Optional<Identifier> background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) -
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancementDisplay
fromPacket
(PacketByteBuf buf) getFrame()
getIcon()
getTitle()
float
getX()
float
getY()
boolean
isHidden()
void
setPos
(float x, float y) boolean
boolean
void
toPacket
(PacketByteBuf buf)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lar;a:Lcom/mojang/serialization/Codec;
intermediary field_47190
Lnet/minecraft/class_185;field_47190:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/advancement/AdvancementDisplay;CODEC:Lcom/mojang/serialization/Codec;
-
title
- Mappings:
Namespace Name Mixin selector official b
Lar;b:Lvf;
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 c
Lar;c:Lvf;
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 d
Lar;d:Lcmy;
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 e
Lar;e:Ljava/util/Optional;
intermediary field_1243
Lnet/minecraft/class_185;field_1243:Ljava/util/Optional;
named background
Lnet/minecraft/advancement/AdvancementDisplay;background:Ljava/util/Optional;
-
frame
- Mappings:
Namespace Name Mixin selector official f
Lar;f:Lal;
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 g
Lar;g: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 h
Lar;h:Z
intermediary field_1238
Lnet/minecraft/class_185;field_1238:Z
named announceToChat
Lnet/minecraft/advancement/AdvancementDisplay;announceToChat:Z
-
x
private float x- Mappings:
Namespace Name Mixin selector official j
Lar;j:F
intermediary field_1245
Lnet/minecraft/class_185;field_1245:F
named x
Lnet/minecraft/advancement/AdvancementDisplay;x:F
-
y
private float y- Mappings:
Namespace Name Mixin selector official k
Lar;k:F
intermediary field_1244
Lnet/minecraft/class_185;field_1244:F
named y
Lnet/minecraft/advancement/AdvancementDisplay;y:F
-
-
Constructor Details
-
AdvancementDisplay
public AdvancementDisplay(ItemStack icon, Text title, Text description, Optional<Identifier> background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) - Mappings:
Namespace Name Mixin selector official <init>
Lar;<init>(Lcmy;Lvf;Lvf;Ljava/util/Optional;Lal;ZZZ)V
intermediary <init>
Lnet/minecraft/class_185;<init>(Lnet/minecraft/class_1799;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/util/Optional;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;Ljava/util/Optional;Lnet/minecraft/advancement/AdvancementFrame;ZZZ)V
-
-
Method Details
-
setPos
public void setPos(float x, float y) - Mappings:
Namespace Name Mixin selector official a
Lar;a(FF)V
intermediary method_816
Lnet/minecraft/class_185;method_816(FF)V
named setPos
Lnet/minecraft/advancement/AdvancementDisplay;setPos(FF)V
-
getTitle
- Mappings:
Namespace Name Mixin selector official a
Lar;a()Lvf;
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
Lar;b()Lvf;
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
Lar;c()Lcmy;
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
Lar;d()Ljava/util/Optional;
intermediary method_812
Lnet/minecraft/class_185;method_812()Ljava/util/Optional;
named getBackground
Lnet/minecraft/advancement/AdvancementDisplay;getBackground()Ljava/util/Optional;
-
getFrame
- Mappings:
Namespace Name Mixin selector official e
Lar;e()Lal;
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
public float getX()- Mappings:
Namespace Name Mixin selector official f
Lar;f()F
intermediary method_818
Lnet/minecraft/class_185;method_818()F
named getX
Lnet/minecraft/advancement/AdvancementDisplay;getX()F
-
getY
public float getY()- Mappings:
Namespace Name Mixin selector official g
Lar;g()F
intermediary method_819
Lnet/minecraft/class_185;method_819()F
named getY
Lnet/minecraft/advancement/AdvancementDisplay;getY()F
-
shouldShowToast
public boolean shouldShowToast()- Mappings:
Namespace Name Mixin selector official h
Lar;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
Lar;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
Lar;j()Z
intermediary method_824
Lnet/minecraft/class_185;method_824()Z
named isHidden
Lnet/minecraft/advancement/AdvancementDisplay;isHidden()Z
-
toPacket
- Mappings:
Namespace Name Mixin selector official a
Lar;a(Lui;)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
Lar;b(Lui;)Lar;
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;
-