Class AdvancementDisplay

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

public class AdvancementDisplay
extends Object
  • Field Details

    • title

      private final Text title
    • description

      private final Text description
    • icon

      private final ItemStack icon
    • background

      private final Identifier background
    • frame

      private final AdvancementFrame frame
    • showToast

      private final boolean showToast
    • announceToChat

      private final boolean announceToChat
    • hidden

      private final boolean hidden
    • xPos

      private float xPos
    • yPos

      private float yPos
  • Constructor Details

  • Method Details

    • setPosition

      public void setPosition​(float xPos, float yPos)
    • getTitle

      public Text getTitle()
    • getDescription

      public Text getDescription()
    • getIcon

      @Environment(CLIENT) public ItemStack getIcon()
    • getBackground

      @Environment(CLIENT) @Nullable public Identifier getBackground()
    • getFrame

      public AdvancementFrame getFrame()
    • getX

      @Environment(CLIENT) public float getX()
    • getY

      @Environment(CLIENT) public float getY()
    • shouldShowToast

      @Environment(CLIENT) public boolean shouldShowToast()
    • shouldAnnounceToChat

      public boolean shouldAnnounceToChat()
    • isHidden

      public boolean isHidden()
    • fromJson

      public static AdvancementDisplay fromJson​(JsonObject obj)
    • iconFromJson

      private static ItemStack iconFromJson​(JsonObject json)
    • toPacket

      public void toPacket​(PacketByteBuf buf)
    • fromPacket

      public static AdvancementDisplay fromPacket​(PacketByteBuf buf)
    • toJson

      public JsonElement toJson()
    • iconToJson

      private JsonObject iconToJson()