Importare la Classe

Link to importare-la-classe

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;

Name: getBackground

Return Type: ResourceLocation

ZenScript
Copy
// DisplayInfo.getBackground() as ResourceLocation

myDisplayInfo.getBackground();

Name: getDescription

Return Type: Component

ZenScript
Copy
// DisplayInfo.getDescription() as Component

myDisplayInfo.getDescription();

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();

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();

Name: isHidden

Return Type: boolean

ZenScript
Copy
// DisplayInfo.isHidden() as boolean

myDisplayInfo.isHidden();

Name: setLocation

Return Type: void

ZenScript
Copy
DisplayInfo.setLocation(x as float, y as float) as void
ParametroTipoDescrizione
Parametro
x
Tipo
float
Descrizione
No Description Provided
Parametro
y
Tipo
float
Descrizione
No Description Provided

Link to shouldAnnounceChat

Name: shouldAnnounceChat

Return Type: boolean

ZenScript
Copy
// DisplayInfo.shouldAnnounceChat() as boolean

myDisplayInfo.shouldAnnounceChat();

Name: shouldShowToast

Return Type: boolean

ZenScript
Copy
// DisplayInfo.shouldShowToast() as boolean

myDisplayInfo.shouldShowToast();
NomeTipoHa GetterHa SetterDescrizione
Nome
background
Tipo
ResourceLocation
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
description
Tipo
Component
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
frame
Tipo
FrameType
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
icon
Tipo
ItemStack
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
isHidden
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
shouldAnnounceChat
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
shouldShowToast
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
title
Tipo
Component
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
x
Tipo
float
Ha Getter
Ha Setter
no
Descrizione
No Description Provided
Nome
y
Tipo
float
Ha Getter
Ha Setter
no
Descrizione
No Description Provided