Class MessageArgument.Part

java.lang.Object
net.minecraft.commands.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_96856_, int p_96857_, EntitySelector p_96858_)
  • Method Details

    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • getSelector

      public EntitySelector getSelector()
    • toComponent

      @Nullable public Component toComponent(CommandSourceStack p_96861_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException