Class MonkeyLibTextImpl
java.lang.Object
top.offsetmonkey538.monkeylib538.modded.impl.text.MonkeyLibTextImpl
- All Implemented Interfaces:
MonkeyLibText,ModdedMonkeyLibText
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface top.offsetmonkey538.monkeylib538.common.api.text.MonkeyLibText
MonkeyLibText.Provider -
Method Summary
Modifier and TypeMethodDescriptionappend(MonkeyLibText other) Appends another text to this one.@Nullable MonkeyLibTextReturns the last sibling of this text.Gets the content of this textgetStyle()Gets the style of this text.net.minecraft.network.chat.ComponentgetText()setLastSibling(MonkeyLibText newSibling) Sets the last sibling of this text.setStyle(MonkeyLibStyle style) Sets the style of this text to the provided style.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface top.offsetmonkey538.monkeylib538.common.api.text.MonkeyLibText
applyStyle
-
Method Details
-
getLastSibling
Description copied from interface:MonkeyLibTextReturns the last sibling of this text.- Specified by:
getLastSiblingin interfaceMonkeyLibText- Returns:
- the last sibling of this text
-
setLastSibling
Description copied from interface:MonkeyLibTextSets the last sibling of this text.- Specified by:
setLastSiblingin interfaceMonkeyLibText- Returns:
- this.
-
append
Description copied from interface:MonkeyLibTextAppends another text to this one.- Specified by:
appendin interfaceMonkeyLibText- Parameters:
other- the text to append to this one- Returns:
- this.
-
getStyle
Description copied from interface:MonkeyLibTextGets the style of this text.- Specified by:
getStylein interfaceMonkeyLibText- Returns:
- The style of this text
-
setStyle
Description copied from interface:MonkeyLibTextSets the style of this text to the provided style.- Specified by:
setStylein interfaceMonkeyLibText- Parameters:
style- the style to use.- Returns:
- this.
-
getString
Description copied from interface:MonkeyLibTextGets the content of this text- Specified by:
getStringin interfaceMonkeyLibText- Returns:
- the content of this text
-
getText
public net.minecraft.network.chat.Component getText()- Specified by:
getTextin interfaceModdedMonkeyLibText
-