Uses of Class
net.risingworld.api.ui.ItemTooltip
Packages that use ItemTooltip
-
Uses of ItemTooltip in net.risingworld.api.objects
Methods in net.risingworld.api.objects that return ItemTooltipMethods in net.risingworld.api.objects with parameters of type ItemTooltipModifier and TypeMethodDescriptionvoidItem.setCustomTooltip(ItemTooltip tooltip) Sets a custom tooltip for this item, which allows to change the name, the modifier, the info text and the condition of the item tooltip. -
Uses of ItemTooltip in net.risingworld.api.ui
Methods in net.risingworld.api.ui that return ItemTooltipModifier and TypeMethodDescriptionstatic ItemTooltipItemTooltip.fromBytes(byte[] data) Creates a tooltip out of the serialized format which the game uses internally.ItemTooltip.hideCondition()Hides the condition of the item.ItemTooltip.resetCondition()Resets the condition, i.e the game shows the regular condition of the item again.ItemTooltip.setCondition(String[] localizedTexts, int rgba) Replaces the condition of the item, with a separate text per language.ItemTooltip.setCondition(String text, int rgba) Replaces the condition of the item, i.e the text and the color of the indicator at the bottom of the tooltip.ItemTooltip.setInfo(ItemTooltip.Mode mode, String text) Sets the info section of the tooltip (shown below the header).ItemTooltip.setInfo(ItemTooltip.Mode mode, String[] localizedTexts) Sets the info section of the tooltip, with a separate text per language.ItemTooltip.setModifier(ItemTooltip.Mode mode, String text) Sets the modifier section of the tooltip (shown next to the header).ItemTooltip.setModifier(ItemTooltip.Mode mode, String[] localizedTexts) Sets the modifier section of the tooltip, with a separate text per language.ItemTooltip.setName(ItemTooltip.Mode mode, String text) Sets the name section (header) of the tooltip.ItemTooltip.setName(ItemTooltip.Mode mode, String[] localizedTexts) Sets the name section (header) of the tooltip, with a separate text per language.