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

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

Return Type: Component

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

Return Type: ItemStack

Getter
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

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

Return Type: bool

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

Return Type: Component

Getter
script.zs
// DisplayInfo.type as AdvancementType
myDisplayInfo.type

Return Type: AdvancementType

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

Return Type: float

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

Return Type: float