类 DataComponentCommand
java.lang.Object
net.neoforged.neoforge.server.command.DataComponentCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static String
getTypeId
(DataComponentType<?> type) private static int
listComponents
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx) private static Component
print
(DataComponentType<?> type, Object data, ChatFormatting color, Component tooltip) static com.mojang.brigadier.builder.ArgumentBuilder
<CommandSourceStack, ?> register()
-
字段详细资料
-
ERROR_NO_ITEM
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_ITEM
-
-
构造器详细资料
-
DataComponentCommand
DataComponentCommand()
-
-
方法详细资料
-
register
-
listComponents
private static int listComponents(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTypeId
-
print
private static Component print(DataComponentType<?> type, Object data, ChatFormatting color, Component tooltip)
-