Class DisplayInfo

java.lang.Object
net.minecraft.advancements.DisplayInfo

public class DisplayInfo extends Object
  • Field Details

    • title

      private final Component title
    • description

      private final Component description
    • icon

      private final ItemStack icon
    • background

      private final ResourceLocation background
    • frame

      private final FrameType frame
    • showToast

      private final boolean showToast
    • announceChat

      private final boolean announceChat
    • hidden

      private final boolean hidden
    • x

      private float x
    • y

      private float y
  • Constructor Details

  • Method Details

    • setLocation

      public void setLocation(float p_14979_, float p_14980_)
    • getTitle

      public Component getTitle()
    • getDescription

      public Component getDescription()
    • getIcon

      public ItemStack getIcon()
    • getBackground

      @Nullable public ResourceLocation getBackground()
    • getFrame

      public FrameType getFrame()
    • getX

      public float getX()
    • getY

      public float getY()
    • shouldShowToast

      public boolean shouldShowToast()
    • shouldAnnounceChat

      public boolean shouldAnnounceChat()
    • isHidden

      public boolean isHidden()
    • fromJson

      public static DisplayInfo fromJson(com.google.gson.JsonObject p_14982_)
    • getIcon

      private static ItemStack getIcon(com.google.gson.JsonObject p_14987_)
    • serializeToNetwork

      public void serializeToNetwork(FriendlyByteBuf p_14984_)
    • fromNetwork

      public static DisplayInfo fromNetwork(FriendlyByteBuf p_14989_)
    • serializeToJson

      public com.google.gson.JsonElement serializeToJson()
    • serializeIcon

      private com.google.gson.JsonObject serializeIcon()