Class DataComponentCommand

java.lang.Object
net.neoforged.neoforge.server.command.DataComponentCommand

class DataComponentCommand extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private 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,?>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      private static String getTypeId(net.minecraft.core.component.DataComponentType<?> type)
    • 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)