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
(net.minecraft.core.component.DataComponentType<?> type) private static int
listComponents
(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) private static net.minecraft.network.chat.Component
print
(net.minecraft.core.component.DataComponentType<?> type, Object data, net.minecraft.ChatFormatting color, net.minecraft.network.chat.Component tooltip) static com.mojang.brigadier.builder.ArgumentBuilder
<net.minecraft.commands.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
public static com.mojang.brigadier.builder.ArgumentBuilder<net.minecraft.commands.CommandSourceStack,?> register() -
listComponents
private static int listComponents(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getTypeId
-
print
private static net.minecraft.network.chat.Component print(net.minecraft.core.component.DataComponentType<?> type, Object data, net.minecraft.ChatFormatting color, net.minecraft.network.chat.Component tooltip)
-