Class AdvancementDisplay

java.lang.Object
net.minecraft.advancement.AdvancementDisplay

public class AdvancementDisplay extends Object
Mappings:
Namespace Name
named net/minecraft/advancement/AdvancementDisplay
intermediary net/minecraft/class_185
official ar
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<AdvancementDisplay> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/advancement/AdvancementDisplay;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_47190 Lnet/minecraft/class_185;field_47190:Lcom/mojang/serialization/Codec;
      official a Lar;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,AdvancementDisplay> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/advancement/AdvancementDisplay;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48276 Lnet/minecraft/class_185;field_48276:Lnet/minecraft/class_9139;
      official b Lar;b:Lzn;
    • title

      private final Text title
      Mappings:
      Namespace Name Mixin selector
      named title Lnet/minecraft/advancement/AdvancementDisplay;title:Lnet/minecraft/text/Text;
      intermediary field_1240 Lnet/minecraft/class_185;field_1240:Lnet/minecraft/class_2561;
      official c Lar;c:Lxp;
    • description

      private final Text description
      Mappings:
      Namespace Name Mixin selector
      named description Lnet/minecraft/advancement/AdvancementDisplay;description:Lnet/minecraft/text/Text;
      intermediary field_1242 Lnet/minecraft/class_185;field_1242:Lnet/minecraft/class_2561;
      official d Lar;d:Lxp;
    • icon

      private final ItemStack icon
      Mappings:
      Namespace Name Mixin selector
      named icon Lnet/minecraft/advancement/AdvancementDisplay;icon:Lnet/minecraft/item/ItemStack;
      intermediary field_1241 Lnet/minecraft/class_185;field_1241:Lnet/minecraft/class_1799;
      official e Lar;e:Lcuq;
    • background

      private final Optional<Identifier> background
      Mappings:
      Namespace Name Mixin selector
      named background Lnet/minecraft/advancement/AdvancementDisplay;background:Ljava/util/Optional;
      intermediary field_1243 Lnet/minecraft/class_185;field_1243:Ljava/util/Optional;
      official f Lar;f:Ljava/util/Optional;
    • frame

      private final AdvancementFrame frame
      Mappings:
      Namespace Name Mixin selector
      named frame Lnet/minecraft/advancement/AdvancementDisplay;frame:Lnet/minecraft/advancement/AdvancementFrame;
      intermediary field_1237 Lnet/minecraft/class_185;field_1237:Lnet/minecraft/class_189;
      official g Lar;g:Lal;
    • showToast

      private final boolean showToast
      Mappings:
      Namespace Name Mixin selector
      named showToast Lnet/minecraft/advancement/AdvancementDisplay;showToast:Z
      intermediary field_1239 Lnet/minecraft/class_185;field_1239:Z
      official h Lar;h:Z
    • announceToChat

      private final boolean announceToChat
      Mappings:
      Namespace Name Mixin selector
      named announceToChat Lnet/minecraft/advancement/AdvancementDisplay;announceToChat:Z
      intermediary field_1238 Lnet/minecraft/class_185;field_1238:Z
      official i Lar;i:Z
    • hidden

      private final boolean hidden
      Mappings:
      Namespace Name Mixin selector
      named hidden Lnet/minecraft/advancement/AdvancementDisplay;hidden:Z
      intermediary field_1236 Lnet/minecraft/class_185;field_1236:Z
      official j Lar;j:Z
    • x

      private float x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/advancement/AdvancementDisplay;x:F
      intermediary field_1245 Lnet/minecraft/class_185;field_1245:F
      official k Lar;k:F
    • y

      private float y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/advancement/AdvancementDisplay;y:F
      intermediary field_1244 Lnet/minecraft/class_185;field_1244:F
      official l Lar;l: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
      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
      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
      official <init> Lar;<init>(Lcuq;Lxp;Lxp;Ljava/util/Optional;Lal;ZZZ)V
  • Method Details

    • setPos

      public void setPos(float x, float y)
      Mappings:
      Namespace Name Mixin selector
      named setPos Lnet/minecraft/advancement/AdvancementDisplay;setPos(FF)V
      intermediary method_816 Lnet/minecraft/class_185;method_816(FF)V
      official a Lar;a(FF)V
    • getTitle

      public Text getTitle()
      Mappings:
      Namespace Name Mixin selector
      named getTitle Lnet/minecraft/advancement/AdvancementDisplay;getTitle()Lnet/minecraft/text/Text;
      intermediary method_811 Lnet/minecraft/class_185;method_811()Lnet/minecraft/class_2561;
      official a Lar;a()Lxp;
    • getDescription

      public Text getDescription()
      Mappings:
      Namespace Name Mixin selector
      named getDescription Lnet/minecraft/advancement/AdvancementDisplay;getDescription()Lnet/minecraft/text/Text;
      intermediary method_817 Lnet/minecraft/class_185;method_817()Lnet/minecraft/class_2561;
      official b Lar;b()Lxp;
    • getIcon

      public ItemStack getIcon()
      Mappings:
      Namespace Name Mixin selector
      named getIcon Lnet/minecraft/advancement/AdvancementDisplay;getIcon()Lnet/minecraft/item/ItemStack;
      intermediary method_821 Lnet/minecraft/class_185;method_821()Lnet/minecraft/class_1799;
      official c Lar;c()Lcuq;
    • getBackground

      public Optional<Identifier> getBackground()
      Mappings:
      Namespace Name Mixin selector
      named getBackground Lnet/minecraft/advancement/AdvancementDisplay;getBackground()Ljava/util/Optional;
      intermediary method_812 Lnet/minecraft/class_185;method_812()Ljava/util/Optional;
      official d Lar;d()Ljava/util/Optional;
    • getFrame

      public AdvancementFrame getFrame()
      Mappings:
      Namespace Name Mixin selector
      named getFrame Lnet/minecraft/advancement/AdvancementDisplay;getFrame()Lnet/minecraft/advancement/AdvancementFrame;
      intermediary method_815 Lnet/minecraft/class_185;method_815()Lnet/minecraft/class_189;
      official e Lar;e()Lal;
    • getX

      public float getX()
      Mappings:
      Namespace Name Mixin selector
      named getX Lnet/minecraft/advancement/AdvancementDisplay;getX()F
      intermediary method_818 Lnet/minecraft/class_185;method_818()F
      official f Lar;f()F
    • getY

      public float getY()
      Mappings:
      Namespace Name Mixin selector
      named getY Lnet/minecraft/advancement/AdvancementDisplay;getY()F
      intermediary method_819 Lnet/minecraft/class_185;method_819()F
      official g Lar;g()F
    • shouldShowToast

      public boolean shouldShowToast()
      Mappings:
      Namespace Name Mixin selector
      named shouldShowToast Lnet/minecraft/advancement/AdvancementDisplay;shouldShowToast()Z
      intermediary method_823 Lnet/minecraft/class_185;method_823()Z
      official h Lar;h()Z
    • shouldAnnounceToChat

      public boolean shouldAnnounceToChat()
      Mappings:
      Namespace Name Mixin selector
      named shouldAnnounceToChat Lnet/minecraft/advancement/AdvancementDisplay;shouldAnnounceToChat()Z
      intermediary method_808 Lnet/minecraft/class_185;method_808()Z
      official i Lar;i()Z
    • isHidden

      public boolean isHidden()
      Mappings:
      Namespace Name Mixin selector
      named isHidden Lnet/minecraft/advancement/AdvancementDisplay;isHidden()Z
      intermediary method_824 Lnet/minecraft/class_185;method_824()Z
      official j Lar;j()Z
    • toPacket

      private void toPacket(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named toPacket Lnet/minecraft/advancement/AdvancementDisplay;toPacket(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary method_813 Lnet/minecraft/class_185;method_813(Lnet/minecraft/class_9129;)V
      official a Lar;a(Lxa;)V
    • fromPacket

      private static AdvancementDisplay fromPacket(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named fromPacket Lnet/minecraft/advancement/AdvancementDisplay;fromPacket(Lnet/minecraft/network/RegistryByteBuf;)Lnet/minecraft/advancement/AdvancementDisplay;
      intermediary method_820 Lnet/minecraft/class_185;method_820(Lnet/minecraft/class_9129;)Lnet/minecraft/class_185;
      official b Lar;b(Lxa;)Lar;