Package net.minecraft.util.text
Interface ITextComponent
-
- All Superinterfaces:
ITextProperties
,com.mojang.brigadier.Message
- All Known Subinterfaces:
IFormattableTextComponent
- All Known Implementing Classes:
KeybindTextComponent
,NBTTextComponent
,NBTTextComponent.Block
,NBTTextComponent.Entity
,NBTTextComponent.Storage
,ScoreTextComponent
,SelectorTextComponent
,StringTextComponent
,TextComponent
,TranslationTextComponent
public interface ITextComponent extends com.mojang.brigadier.Message, ITextProperties
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ITextComponent.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.util.text.ITextProperties
ITextProperties.IStyledTextAcceptor<T>, ITextProperties.ITextAcceptor<T>
-
-
Field Summary
-
Fields inherited from interface net.minecraft.util.text.ITextProperties
EMPTY, STOP_ITERATION
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IFormattableTextComponent
copy()
java.lang.String
getContents()
java.util.List<ITextComponent>
getSiblings()
default java.lang.String
getString()
default java.lang.String
getString(int p_212636_1_)
Style
getStyle()
IReorderingProcessor
getVisualOrderText()
static ITextComponent
nullToEmpty(java.lang.String p_244388_0_)
IFormattableTextComponent
plainCopy()
default <T> java.util.Optional<T>
visit(ITextProperties.IStyledTextAcceptor<T> p_230439_1_, Style p_230439_2_)
default <T> java.util.Optional<T>
visit(ITextProperties.ITextAcceptor<T> p_230438_1_)
default <T> java.util.Optional<T>
visitSelf(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_)
default <T> java.util.Optional<T>
visitSelf(ITextProperties.ITextAcceptor<T> p_230533_1_)
-
-
-
Method Detail
-
getStyle
Style getStyle()
-
getContents
java.lang.String getContents()
-
getString
default java.lang.String getString()
- Specified by:
getString
in interfaceITextProperties
- Specified by:
getString
in interfacecom.mojang.brigadier.Message
-
getString
default java.lang.String getString(int p_212636_1_)
-
getSiblings
java.util.List<ITextComponent> getSiblings()
-
plainCopy
IFormattableTextComponent plainCopy()
-
copy
IFormattableTextComponent copy()
-
getVisualOrderText
IReorderingProcessor getVisualOrderText()
-
visit
default <T> java.util.Optional<T> visit(ITextProperties.IStyledTextAcceptor<T> p_230439_1_, Style p_230439_2_)
- Specified by:
visit
in interfaceITextProperties
-
visit
default <T> java.util.Optional<T> visit(ITextProperties.ITextAcceptor<T> p_230438_1_)
- Specified by:
visit
in interfaceITextProperties
-
visitSelf
default <T> java.util.Optional<T> visitSelf(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_)
-
visitSelf
default <T> java.util.Optional<T> visitSelf(ITextProperties.ITextAcceptor<T> p_230533_1_)
-
nullToEmpty
static ITextComponent nullToEmpty(@Nullable java.lang.String p_244388_0_)
-
-