Package net.minecraft.util.text
Class TextComponent
- java.lang.Object
-
- net.minecraft.util.text.TextComponent
-
- All Implemented Interfaces:
com.mojang.brigadier.Message
,IFormattableTextComponent
,ITextComponent
,ITextProperties
- Direct Known Subclasses:
KeybindTextComponent
,NBTTextComponent
,ScoreTextComponent
,SelectorTextComponent
,StringTextComponent
,TranslationTextComponent
public abstract class TextComponent extends java.lang.Object implements IFormattableTextComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextComponent
ITextComponent.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T>
-
-
Field Summary
Fields Modifier and Type Field Description private LanguageMap
decomposedWith
protected java.util.List<ITextComponent>
siblings
private Style
style
private IReorderingProcessor
visualOrderText
-
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
-
Constructor Summary
Constructors Constructor Description TextComponent()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IFormattableTextComponent
append(ITextComponent p_230529_1_)
IFormattableTextComponent
copy()
boolean
equals(java.lang.Object p_equals_1_)
java.lang.String
getContents()
java.util.List<ITextComponent>
getSiblings()
Style
getStyle()
IReorderingProcessor
getVisualOrderText()
int
hashCode()
abstract TextComponent
plainCopy()
IFormattableTextComponent
setStyle(Style p_230530_1_)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
siblings
protected final java.util.List<ITextComponent> siblings
-
visualOrderText
private IReorderingProcessor visualOrderText
-
decomposedWith
@Nullable private LanguageMap decomposedWith
-
style
private Style style
-
-
Method Detail
-
append
public IFormattableTextComponent append(ITextComponent p_230529_1_)
- Specified by:
append
in interfaceIFormattableTextComponent
-
getContents
public java.lang.String getContents()
- Specified by:
getContents
in interfaceITextComponent
-
getSiblings
public java.util.List<ITextComponent> getSiblings()
- Specified by:
getSiblings
in interfaceITextComponent
-
setStyle
public IFormattableTextComponent setStyle(Style p_230530_1_)
- Specified by:
setStyle
in interfaceIFormattableTextComponent
-
getStyle
public Style getStyle()
- Specified by:
getStyle
in interfaceITextComponent
-
plainCopy
public abstract TextComponent plainCopy()
- Specified by:
plainCopy
in interfaceITextComponent
-
copy
public final IFormattableTextComponent copy()
- Specified by:
copy
in interfaceITextComponent
-
getVisualOrderText
public IReorderingProcessor getVisualOrderText()
- Specified by:
getVisualOrderText
in interfaceITextComponent
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-