Class EntityArgumentType

java.lang.Object
net.minecraft.command.argument.EntityArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<EntitySelector>

public class EntityArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<EntitySelector>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • TOO_MANY_ENTITIES_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_MANY_ENTITIES_EXCEPTION
    • TOO_MANY_PLAYERS_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_MANY_PLAYERS_EXCEPTION
    • PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION
    • ENTITY_NOT_FOUND_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ENTITY_NOT_FOUND_EXCEPTION
    • PLAYER_NOT_FOUND_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYER_NOT_FOUND_EXCEPTION
    • NOT_ALLOWED_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NOT_ALLOWED_EXCEPTION
    • singleTarget

      private final boolean singleTarget
    • playersOnly

      private final boolean playersOnly
  • Constructor Details

    • EntityArgumentType

      protected EntityArgumentType​(boolean singleTarget, boolean playersOnly)
  • Method Details