Class ExpandDisplayInfo

java.lang.Object
com.blamejared.crafttweaker.natives.advancement.ExpandDisplayInfo

@ZenRegister public class ExpandDisplayInfo extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceLocation
    getBackground(net.minecraft.advancements.DisplayInfo internal)
    Gets the background of the display info, or null if it is not set.
    static net.minecraft.network.chat.Component
    getDescription(net.minecraft.advancements.DisplayInfo internal)
    Gets the description of the display info.
    static net.minecraft.advancements.AdvancementType
    getFrame(net.minecraft.advancements.DisplayInfo internal)
    Gets the type of the display info.
    static net.minecraft.world.item.ItemStack
    getIcon(net.minecraft.advancements.DisplayInfo internal)
    Gets the icon of the display info.
    static net.minecraft.network.chat.Component
    getTitle(net.minecraft.advancements.DisplayInfo internal)
    Gets the title of the display info.
    static float
    getX(net.minecraft.advancements.DisplayInfo internal)
    Gets the x coordinate of the display info.
    static float
    getY(net.minecraft.advancements.DisplayInfo internal)
    Gets the y coordinate of the display info.
    static boolean
    isHidden(net.minecraft.advancements.DisplayInfo internal)
    Gets whether the advancement should be hidden.
    static void
    setLocation(net.minecraft.advancements.DisplayInfo internal, float x, float y)
    Sets the location of the display info.
    static boolean
    shouldAnnounceChat(net.minecraft.advancements.DisplayInfo internal)
    Gets whether the advancement should be displayed in chat when earned.
    static boolean
    shouldShowToast(net.minecraft.advancements.DisplayInfo internal)
    Gets whether the toast should be shown for the display info.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandDisplayInfo

      public ExpandDisplayInfo()
  • Method Details

    • setLocation

      public static void setLocation(net.minecraft.advancements.DisplayInfo internal, float x, float y)
      Sets the location of the display info.
      Parameters:
      x - The x coordinate of the display info.
      y - The y coordinate of the display info.
    • getTitle

      public static net.minecraft.network.chat.Component getTitle(net.minecraft.advancements.DisplayInfo internal)
      Gets the title of the display info.
      Returns:
      The title of the display info.
    • getDescription

      public static net.minecraft.network.chat.Component getDescription(net.minecraft.advancements.DisplayInfo internal)
      Gets the description of the display info.
      Returns:
      The description of the display info.
    • getIcon

      public static net.minecraft.world.item.ItemStack getIcon(net.minecraft.advancements.DisplayInfo internal)
      Gets the icon of the display info.
      Returns:
      The icon of the display info.
    • getBackground

      public static net.minecraft.resources.ResourceLocation getBackground(net.minecraft.advancements.DisplayInfo internal)
      Gets the background of the display info, or null if it is not set.
      Returns:
      The background of the display info, or null if it is not set.
    • getFrame

      public static net.minecraft.advancements.AdvancementType getFrame(net.minecraft.advancements.DisplayInfo internal)
      Gets the type of the display info.
      Returns:
      The type of the display info.
    • getX

      public static float getX(net.minecraft.advancements.DisplayInfo internal)
      Gets the x coordinate of the display info.
      Returns:
      The x coordinate of the display info.
    • getY

      public static float getY(net.minecraft.advancements.DisplayInfo internal)
      Gets the y coordinate of the display info.
      Returns:
      The y coordinate of the display info.
    • shouldShowToast

      public static boolean shouldShowToast(net.minecraft.advancements.DisplayInfo internal)
      Gets whether the toast should be shown for the display info.
      Returns:
      Whether the toast should be shown for the display info.
    • shouldAnnounceChat

      public static boolean shouldAnnounceChat(net.minecraft.advancements.DisplayInfo internal)
      Gets whether the advancement should be displayed in chat when earned.
      Returns:
      Whether the advancement should be displayed in chat when earned.
    • isHidden

      public static boolean isHidden(net.minecraft.advancements.DisplayInfo internal)
      Gets whether the advancement should be hidden.
      Returns:
      Whether the advancement should be hidden.