DisplayInfo

Importing the class

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.

script.zs
import crafttweaker.api.advancement.DisplayInfo;

Members

Getter
script.zs
// DisplayInfo.background as ResourceLocation
myDisplayInfo.background

Return Type: ResourceLocation

background() as ResourceLocation
script.zs
// DisplayInfo.background() as ResourceLocation;
myDisplayInfo.background();

Return Type: ResourceLocation

Getter
script.zs
// DisplayInfo.description as Component
myDisplayInfo.description

Return Type: Component

description() as Component
script.zs
// DisplayInfo.description() as Component;
myDisplayInfo.description();

Return Type: Component

Getter
script.zs
// DisplayInfo.frame as FrameType
myDisplayInfo.frame

Return Type: FrameType

frame() as FrameType
script.zs
// DisplayInfo.frame() as FrameType;
myDisplayInfo.frame();

Return Type: FrameType

Getter
script.zs
// DisplayInfo.icon as ItemStack
myDisplayInfo.icon

Return Type: ItemStack

icon() as ItemStack
script.zs
// DisplayInfo.icon() as ItemStack;
myDisplayInfo.icon();

Return Type: ItemStack

Getter
script.zs
// DisplayInfo.isHidden as bool
myDisplayInfo.isHidden

Return Type: bool

isHidden() as bool
script.zs
// DisplayInfo.isHidden() as bool;
myDisplayInfo.isHidden();

Return Type: bool

setLocation(x as float, y as float)
script.zs
// DisplayInfo.setLocation(x as float, y as float);
myDisplayInfo.setLocation(myFloat, myFloat);

Parameters:

x Type: float
y Type: float
Getter
script.zs
// DisplayInfo.shouldAnnounceChat as bool
myDisplayInfo.shouldAnnounceChat

Return Type: bool

shouldAnnounceChat() as bool
script.zs
// DisplayInfo.shouldAnnounceChat() as bool;
myDisplayInfo.shouldAnnounceChat();

Return Type: bool

Getter
script.zs
// DisplayInfo.shouldShowToast as bool
myDisplayInfo.shouldShowToast

Return Type: bool

shouldShowToast() as bool
script.zs
// DisplayInfo.shouldShowToast() as bool;
myDisplayInfo.shouldShowToast();

Return Type: bool

Getter
script.zs
// DisplayInfo.title as Component
myDisplayInfo.title

Return Type: Component

title() as Component
script.zs
// DisplayInfo.title() as Component;
myDisplayInfo.title();

Return Type: Component

Getter
script.zs
// DisplayInfo.x as float
myDisplayInfo.x

Return Type: float

x() as float
script.zs
// DisplayInfo.x() as float;
myDisplayInfo.x();

Return Type: float

Getter
script.zs
// DisplayInfo.y as float
myDisplayInfo.y

Return Type: float

y() as float
script.zs
// DisplayInfo.y() as float;
myDisplayInfo.y();

Return Type: float