Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.advancement.DisplayInfo;

Link to g-

Name: getBackground

Return Type: ResourceLocation

ZenScript
Copy
// DisplayInfo.getBackground() as ResourceLocation

myDisplayInfo.getBackground();

Link to g--1

Name: getDescription

Return Type: Component

ZenScript
Copy
// DisplayInfo.getDescription() as Component

myDisplayInfo.getDescription();

Link to g--2

Name: getFrame

Return Type: FrameType

ZenScript
Copy
// DisplayInfo.getFrame() as FrameType

myDisplayInfo.getFrame();

Name: getIcon

Return Type: ItemStack

ZenScript
Copy
// DisplayInfo.getIcon() as ItemStack

myDisplayInfo.getIcon();

Link to g--4

Name: getTitle

Return Type: Component

ZenScript
Copy
// DisplayInfo.getTitle() as Component

myDisplayInfo.getTitle();

Name: getX

Return Type: float

ZenScript
Copy
// DisplayInfo.getX() as float

myDisplayInfo.getX();

Name: getY

Return Type: float

ZenScript
Copy
// DisplayInfo.getY() as float

myDisplayInfo.getY();

Link to g--7

Name: isHidden

Return Type: boolean

ZenScript
Copy
// DisplayInfo.isHidden() as boolean

myDisplayInfo.isHidden();

Link to g--8

Name: setLocation

Return Type: void

ZenScript
Copy
DisplayInfo.setLocation(x as float, y as float) as void
ParameterTypeDescription
Parameter
x
Type
float
Description
No Description Provided
Parameter
y
Type
float
Description
No Description Provided

Link to g--9

Name: shouldAnnounceChat

Return Type: boolean

ZenScript
Copy
// DisplayInfo.shouldAnnounceChat() as boolean

myDisplayInfo.shouldAnnounceChat();

Link to g--10

Name: shouldShowToast

Return Type: boolean

ZenScript
Copy
// DisplayInfo.shouldShowToast() as boolean

myDisplayInfo.shouldShowToast();
NameTypeHas GetterHas SetterDescription
Name
background
Type
ResourceLocation
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
description
Type
Component
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
frame
Type
FrameType
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
icon
Type
ItemStack
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isHidden
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
shouldAnnounceChat
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
shouldShowToast
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
title
Type
Component
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
x
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
y
Type
float
Has Getter
true
Has Setter
false
Description
No Description Provided