Class DataComponentCommand
java.lang.Object
net.neoforged.neoforge.server.command.DataComponentCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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()
-
Field Details
-
ERROR_NO_ITEM
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_ITEM
-
-
Constructor Details
-
DataComponentCommand
DataComponentCommand()
-
-
Method Details
-
register
-
listComponents
private static int listComponents(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTypeId
-
print
private static Component print(DataComponentType<?> type, Object data, ChatFormatting color, Component tooltip)
-