Interface ComponentElement
- All Superinterfaces:
DomQueryable,Element,EventTarget,Node
A node which uses a
Component as content-
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.ComponentGet the chat component contentvoidsetContent(net.kyori.adventure.text.Component content) Set the chat component contentMethods inherited from interface net.arcadiusmc.dom.DomQueryable
getElementsByClassName, getElementsByTagName, querySelector, querySelectorAllMethods inherited from interface net.arcadiusmc.dom.Element
appendChild, appendElement, appendText, canHaveChildren, clearChildren, firstChild, forEachDescendant, getAttribute, getAttributeEntries, getAttributeNames, getChild, getChildCount, getChildren, getClassList, getClassName, getCurrentStyle, getId, getInlineStyle, getTagName, getTextContent, getTitleNode, getTooltip, hasChild, hasChildren, indexOf, insertAfter, insertBefore, isDescendant, lastChild, matches, prependChild, removeAttribute, removeChild, removeChild, replaceChild, replaceChild, setAttribute, setClassName, setId, setTextContent, setTitleNodeMethods inherited from interface net.arcadiusmc.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 net.arcadiusmc.dom.Node
enterVisitor, exitVisitor, getDepth, getOwningDocument, getParent, getRenderingBounds, getSiblingIndex, hasFlag, nextSibling, previousSibling
-
Method Details
-
getContent
net.kyori.adventure.text.Component getContent()Get the chat component content- Returns:
- Content component
-
setContent
void setContent(net.kyori.adventure.text.Component content) Set the chat component content- Parameters:
content- Content component
-