Interface ItemElement
- All Superinterfaces:
 DomQueryable,Element,EventTarget,Node
 <item src="./item.json" />
 - 
Method Summary
Modifier and TypeMethodDescriptionbooleanGet whether the shown item's tooltip shows the advancedF3+Hinformation.@Nullable org.bukkit.inventory.ItemStackGets the element's item stackGets the element's tooltip.booleanGet whether the element shows the automatically generated tooltip when hovered over or not.voidsetAdvancedTooltip(boolean advancedTooltip) Set whether the shown item's tooltip shows the advancedF3+Hinformation.voidsetItemStack(@Nullable org.bukkit.inventory.ItemStack stack) Sets the element's item stack.voidsetTooltipHidden(boolean tooltipShown) Set whether the element shows the automatically generated tooltip when hovered over.Methods inherited from interface com.juliewoolie.dom.DomQueryable
getElementsByClassName, getElementsByTagName, querySelector, querySelectorAllMethods inherited from interface com.juliewoolie.dom.Element
appendChild, appendElement, appendText, canHaveChildren, clearChildren, firstChild, forEachDescendant, getAttribute, getAttributeEntries, getAttributeNames, getChild, getChildCount, getChildren, getClassList, getClassName, getCurrentStyle, getId, getStyle, getTagName, getTextContent, getTitleNode, getTooltipBehaviour, getTooltipDelay, hasAttribute, hasChild, hasChildren, indexOf, insertAfter, insertBefore, isDescendant, lastChild, matches, prependChild, removeAttribute, removeChild, removeChild, removeMatchingChildren, replaceChild, replaceChild, setAttribute, setClassName, setId, setTextContent, setTitleNode, setTooltipBehaviour, setTooltipDelayMethods inherited from interface com.juliewoolie.dom.event.EventTarget
addEventListener, dispatchEvent, getOnAddAttribute, getOnAddOption, getOnAppendChild, getOnAttributeChange, getOnClick, getOnClosing, getOnInput, getOnLoaded, getOnMouseEnter, getOnMouseExit, getOnMouseMove, getOnOptionChange, getOnRemoveAttribute, getOnRemoveChild, getOnRemoveOption, getOnRightClick, getOnSetAttribute, getOnSetOption, getOnSpawned, onAddAttribute, onAddOption, onAppendChild, onAttributeChange, onClick, onClosing, onInput, onLoaded, onMouseEnter, onMouseExit, onMouseMove, onOptionChange, onRemoveAttribute, onRemoveChild, onRemoveOption, onRightClick, onSetAttribute, onSetOption, onSpawned, removeEventListenerMethods inherited from interface com.juliewoolie.dom.Node
enterVisitor, exitVisitor, getDepth, getOwningDocument, getParent, getRenderingBounds, getSiblingIndex, hasFlag, nextSibling, previousSibling 
- 
Method Details
- 
getTooltipHidden
boolean getTooltipHidden()Get whether the element shows the automatically generated tooltip when hovered over or not.If
getTooltip()does NOT return the automatically generated item tooltip, then the result of this method is ignored.Shorthand for parsing the value of the
Attributes.ITEM_TOOLTIP_HIDEattribute. If the attribute is not set,falseis returned. If the attribute's value cannot be parsed into a boolean,falseis returned. Otherwise the parsed value of the attribute is returned.- Returns:
 true, if the item tooltip is hidden,falseotherwise.- See Also:
 
 - 
setTooltipHidden
void setTooltipHidden(boolean tooltipShown) Set whether the element shows the automatically generated tooltip when hovered over.Shorthand for setting the
Attributes.ITEM_TOOLTIP_HIDEattribute.- Parameters:
 tooltipShown-true, if the item tooltip is hidden,falseotherwise.- See Also:
 
 - 
getAdvancedTooltip
boolean getAdvancedTooltip()Get whether the shown item's tooltip shows the advancedF3+Hinformation.Shorthand for parsing the value of the
Attributes.ADVANCED_ITEM_TOOLTIPSattribute. If the attribute is not set, then the value ofOptions.ADVANCED_ITEM_TOOLTIPSis used. If the option has no set value, thenfalseis returned. If the attribute/option's value cannot be parsed into a boolean,falseis returned, otherwise the parsed value is returned.- Returns:
 true, if advanced tooltips are shown,falseotherwise.- See Also:
 
 - 
setAdvancedTooltip
void setAdvancedTooltip(boolean advancedTooltip) Set whether the shown item's tooltip shows the advancedF3+Hinformation.Shorthand for setting the
Attributes.ADVANCED_ITEM_TOOLTIPSattribute.- Parameters:
 advancedTooltip-true, to show advanced tooltips,falseotherwise.- See Also:
 
 - 
getTooltip
Element getTooltip()Gets the element's tooltip.May return the item stack's tooltip, unless the element's tooltip has been overridden with
Element.setTitleNode(Element)or if theAttributes.ITEM_TOOLTIP_HIDEhas been set totrue- Specified by:
 getTooltipin interfaceElement- Returns:
 - Element tooltip
 - See Also:
 
 - 
getItemStack
@Nullable @Nullable org.bukkit.inventory.ItemStack getItemStack()Gets the element's item stack- Returns:
 - Item stack, or 
null, if not set or if it failed to load. 
 - 
setItemStack
void setItemStack(@Nullable @Nullable org.bukkit.inventory.ItemStack stack) Sets the element's item stack.- Parameters:
 stack- Item tack.
 
 -