Interface EntityArgument


@NullMarked @Deprecated(since="1.21.7", forRemoval=true) public interface EntityArgument
Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • entity

      default com.mojang.brigadier.arguments.ArgumentType<EntitySelectorArgumentResolver> entity()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • entities

      default com.mojang.brigadier.arguments.ArgumentType<EntitySelectorArgumentResolver> entities()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • player

      default com.mojang.brigadier.arguments.ArgumentType<PlayerSelectorArgumentResolver> player()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • players

      default com.mojang.brigadier.arguments.ArgumentType<PlayerSelectorArgumentResolver> players()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getEntity

      default Entity getEntity(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getEntities

      default Collection<? extends Entity> getEntities(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getOptionalPlayers

      default Collection<Player> getOptionalPlayers(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getPlayer

      default Player getPlayer(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getPlayers

      default Collection<Player> getPlayers(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException