Class MessageArgument.Part

java.lang.Object
net.minecraft.command.arguments.MessageArgument.Part
Enclosing class:
MessageArgument

public static class MessageArgument.Part extends Object
  • Field Details

    • start

      private final int start
    • end

      private final int end
    • selector

      private final EntitySelector selector
  • Constructor Details

    • Part

      public Part(int p_i48020_1_, int p_i48020_2_, EntitySelector p_i48020_3_)
  • Method Details

    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • toComponent

      @Nullable public ITextComponent toComponent(CommandSource p_197116_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException