If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.advancement . DisplayInfo;
// DisplayInfo.background() as ResourceLocation;
myDisplayInfo . background();
Return Type:
ResourceLocation
// DisplayInfo.description as Component
myDisplayInfo . description
Return Type:
Component
// DisplayInfo.description() as Component;
myDisplayInfo . description();
Return Type:
Component
// DisplayInfo.frame as FrameType
Return Type:
FrameType
// DisplayInfo.frame() as FrameType;
Return Type:
FrameType
// DisplayInfo.icon as ItemStack
Return Type:
ItemStack
// DisplayInfo.icon() as ItemStack;
Return Type:
ItemStack
// DisplayInfo.isHidden as bool
Return Type:
bool
// DisplayInfo.isHidden() as bool;
myDisplayInfo . isHidden();
Return Type:
bool
// DisplayInfo.setLocation(x as float, y as float);
myDisplayInfo . setLocation(myFloat, myFloat);
Parameters:
x: float
Type: float
y: float
Type: float
// DisplayInfo.shouldAnnounceChat as bool
myDisplayInfo . shouldAnnounceChat
Return Type:
bool
// DisplayInfo.shouldAnnounceChat() as bool;
myDisplayInfo . shouldAnnounceChat();
Return Type:
bool
// DisplayInfo.shouldShowToast as bool
myDisplayInfo . shouldShowToast
Return Type:
bool
// DisplayInfo.shouldShowToast() as bool;
myDisplayInfo . shouldShowToast();
Return Type:
bool
// DisplayInfo.title as Component
Return Type:
Component
// DisplayInfo.title() as Component;
Return Type:
Component
// DisplayInfo.x as float
Return Type:
float
// DisplayInfo.x() as float;
Return Type:
float
// DisplayInfo.y as float
Return Type:
float
// DisplayInfo.y() as float;
Return Type:
float