DisplayInfo
Importing the class
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.
import crafttweaker.api.advancement.DisplayInfo;
Methods
Return Type: ResourceLocation?
// DisplayInfo.getBackground() as ResourceLocation?
myDisplayInfo.getBackground();
Return Type: Component
// DisplayInfo.getDescription() as Component
myDisplayInfo.getDescription();
Return Type: FrameType
// DisplayInfo.getFrame() as FrameType
myDisplayInfo.getFrame();
Return Type: ItemStack
// DisplayInfo.getIcon() as ItemStack
myDisplayInfo.getIcon();
Return Type: Component
// DisplayInfo.getTitle() as Component
myDisplayInfo.getTitle();
Return Type: float
// DisplayInfo.getX() as float
myDisplayInfo.getX();
Return Type: float
// DisplayInfo.getY() as float
myDisplayInfo.getY();
DisplayInfo.setLocation(x as float, y as float)
Parameter | Type |
---|---|
Parameter x | Type float |
Parameter y | Type float |
Return Type: boolean
// DisplayInfo.shouldAnnounceChat() as boolean
myDisplayInfo.shouldAnnounceChat();
Return Type: boolean
// DisplayInfo.shouldShowToast() as boolean
myDisplayInfo.shouldShowToast();
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name background | Type ResourceLocation? | Has Getter true | Has Setter false |
Name description | Type Component | Has Getter true | Has Setter false |
Name frame | Type FrameType | Has Getter true | Has Setter false |
Name icon | Type ItemStack | Has Getter true | Has Setter false |
Name isHidden | Type boolean | Has Getter true | Has Setter false |
Name shouldAnnounceChat | Type boolean | Has Getter true | Has Setter false |
Name shouldShowToast | Type boolean | Has Getter true | Has Setter false |
Name title | Type Component | Has Getter true | Has Setter false |
Name x | Type float | Has Getter true | Has Setter false |
Name y | Type float | Has Getter true | Has Setter false |