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();
名称 | 类型 | 可获得 | 可设置 | 描述 |
---|---|---|---|---|
名称 background | 类型 资源位置 | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 description | 类型 Component | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 frame | 类型 FrameType | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 icon | 类型 物品应用 | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 isHidden | 类型 布尔值 | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 shouldAnnounceChat | 类型 布尔值 | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 shouldShowToast | 类型 布尔值 | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 title | 类型 Component | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 x | 类型 float | 可获得 true | 可设置 false | 描述 No Description Provided |
名称 y | 类型 float | 可获得 true | 可设置 false | 描述 No Description Provided |