接口 ComponentContents
- 所有已知子接口:
PlainTextContents
- 所有已知实现类:
InsertingContents
,KeybindContents
,NbtContents
,PlainTextContents.LiteralContents
,ScoreContents
,SelectorContents
,TranslatableContents
public interface ComponentContents
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明default MutableComponent
resolve
(CommandSourceStack p_237126_, Entity p_237127_, int p_237128_) type()
default <T> Optional
<T> visit
(FormattedText.ContentConsumer<T> p_237129_) default <T> Optional
<T> visit
(FormattedText.StyledContentConsumer<T> p_237130_, Style p_237131_)
-
方法详细资料
-
visit
-
visit
-
resolve
default MutableComponent resolve(@Nullable CommandSourceStack p_237126_, @Nullable Entity p_237127_, int p_237128_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
type
ComponentContents.Type<?> type()
-