Class ExpandDisplayInfo
java.lang.Object
com.blamejared.crafttweaker.natives.advancement.ExpandDisplayInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.resources.ResourceLocationgetBackground(net.minecraft.advancements.DisplayInfo internal) Gets the background of the display info, or null if it is not set.static net.minecraft.network.chat.ComponentgetDescription(net.minecraft.advancements.DisplayInfo internal) Gets the description of the display info.static net.minecraft.advancements.AdvancementTypegetFrame(net.minecraft.advancements.DisplayInfo internal) Gets the type of the display info.static net.minecraft.world.item.ItemStackgetIcon(net.minecraft.advancements.DisplayInfo internal) Gets the icon of the display info.static net.minecraft.network.chat.ComponentgetTitle(net.minecraft.advancements.DisplayInfo internal) Gets the title of the display info.static floatgetX(net.minecraft.advancements.DisplayInfo internal) Gets the x coordinate of the display info.static floatgetY(net.minecraft.advancements.DisplayInfo internal) Gets the y coordinate of the display info.static booleanisHidden(net.minecraft.advancements.DisplayInfo internal) Gets whether the advancement should be hidden.static voidsetLocation(net.minecraft.advancements.DisplayInfo internal, float x, float y) Sets the location of the display info.static booleanshouldAnnounceChat(net.minecraft.advancements.DisplayInfo internal) Gets whether the advancement should be displayed in chat when earned.static booleanshouldShowToast(net.minecraft.advancements.DisplayInfo internal) Gets whether the toast should be shown for the display info.
-
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.
-