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
-
Nested Class Summary
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
Modifier and TypeMethodDescriptioncopy()
default String
default String
getString
(int p_212636_1_) getStyle()
static ITextComponent
nullToEmpty
(String p_244388_0_) default <T> Optional<T>
visit
(ITextProperties.IStyledTextAcceptor<T> p_230439_1_, Style p_230439_2_) default <T> Optional<T>
visit
(ITextProperties.ITextAcceptor<T> p_230438_1_) default <T> Optional<T>
visitSelf
(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_) default <T> Optional<T>
visitSelf
(ITextProperties.ITextAcceptor<T> p_230533_1_)
-
Method Details
-
getStyle
Style getStyle() -
getContents
String getContents() -
getString
- Specified by:
getString
in interfaceITextProperties
- Specified by:
getString
in interfacecom.mojang.brigadier.Message
-
getString
-
getSiblings
List<ITextComponent> getSiblings() -
plainCopy
IFormattableTextComponent plainCopy() -
copy
IFormattableTextComponent copy() -
getVisualOrderText
IReorderingProcessor getVisualOrderText() -
visit
default <T> Optional<T> visit(ITextProperties.IStyledTextAcceptor<T> p_230439_1_, Style p_230439_2_) - Specified by:
visit
in interfaceITextProperties
-
visit
- Specified by:
visit
in interfaceITextProperties
-
visitSelf
default <T> Optional<T> visitSelf(ITextProperties.IStyledTextAcceptor<T> p_230534_1_, Style p_230534_2_) -
visitSelf
-
nullToEmpty
-