接口 ComponentContents
- 所有已知实现类:
KeybindContents
,LiteralContents
,NbtContents
,ScoreContents
,SelectorContents
,TranslatableContents
public interface ComponentContents
-
字段概要
字段 -
方法概要
修饰符和类型方法说明default MutableComponent
resolve
(CommandSourceStack pNbtPathPattern, Entity pEntity, int pRecursionDepth) default <T> Optional<T>
visit
(FormattedText.ContentConsumer<T> pContentConsumer) default <T> Optional<T>
visit
(FormattedText.StyledContentConsumer<T> pStyledContentConsumer, Style pStyle)
-
字段详细资料
-
EMPTY
-
-
方法详细资料
-
visit
default <T> Optional<T> visit(FormattedText.StyledContentConsumer<T> pStyledContentConsumer, Style pStyle) -
visit
-
resolve
default MutableComponent resolve(@Nullable CommandSourceStack pNbtPathPattern, @Nullable Entity pEntity, int pRecursionDepth) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-