DisplayInfo
Link to displayinfo
Импорт класса
Link to импорт-класса
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 Copyimport crafttweaker.api.advancement.DisplayInfo;
Методы
Link to методы
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 CopyDisplayInfo.setLocation(x as float, y as float) as void
Параметр | Тип | Описание |
---|---|---|
Параметр x | Тип float | Описание No Description Provided |
Параметр y | Тип float | Описание No Description Provided |
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();
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название background | Тип ResourceLocation | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название description | Тип Component | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название frame | Тип FrameType | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название icon | Тип ItemStack | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название isHidden | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название shouldAnnounceChat | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название shouldShowToast | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название title | Тип Component | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название x | Тип float | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название y | Тип float | Имеет Getter true | Имеет Setter false | Описание No Description Provided |