net.minecraft.command.arguments

public class EntityArgumentType

implements ArgumentType<EntitySelector>

cl
net.minecraft.class_2186
net.minecraft.command.arguments.EntityArgumentType
net.minecraft.command.argument.EntityArgument
net.minecraft.command.arguments.EntityArgument
net.minecraft.command.arguments.EntityArgument

Field summary

Modifier and TypeField
private static final Collection<String>
g
field_9859
EXAMPLES
EXAMPLES
field_201310_f
EXAMPLES
public static final SimpleCommandExceptionType
a
field_9860
TOO_MANY_ENTITIES_EXCEPTION
TOO_MANY_ENTITIES_EXCEPTION
field_197098_a
TOO_MANY_ENTITIES
public static final SimpleCommandExceptionType
b
field_9864
TOO_MANY_PLAYERS_EXCEPTION
TOO_MANY_PLAYERS_EXCEPTION
field_197099_b
TOO_MANY_PLAYERS
public static final SimpleCommandExceptionType
c
field_9861
PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION
NOT_PLAYER_EXCEPTION
field_197100_c
ONLY_PLAYERS_ALLOWED
public static final SimpleCommandExceptionType
d
field_9863
ENTITY_NOT_FOUND_EXCEPTION
ENTITY_NOT_FOUND_EXCEPTION
field_197101_d
ENTITY_NOT_FOUND
public static final SimpleCommandExceptionType
e
field_9856
PLAYER_NOT_FOUND_EXCEPTION
PLAYER_NOT_FOUND_EXCEPTION
field_197102_e
PLAYER_NOT_FOUND
public static final SimpleCommandExceptionType
f
field_9862
NOT_ALLOWED_EXCEPTION
SELECTOR_NOT_ALLOWED_EXCEPTION
field_210323_f
SELECTOR_NOT_ALLOWED
private final boolean
h
field_9858
singleTarget
single
field_197103_f
single
private final boolean
i
field_9857
playersOnly
players
field_197104_g
playersOnly

Constructor summary

ModifierConstructor
protected (boolean single, boolean players)

Method summary

Modifier and TypeMethod
public static EntityArgumentType
a()
method_9309()
entity()
entity()
func_197086_a()
entity()
public static Entity
a(CommandContext<cd> arg0, String arg1)
method_9313(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEntity(com.mojang.brigadier.context.CommandContext<ServerCommandSource> arg0, String arg1)
getEntity(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String arg)
func_197088_a(com.mojang.brigadier.context.CommandContext<CommandSource> arg0, String arg1)
getEntity(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name)
public static EntityArgumentType
b()
method_9306()
entities()
entities()
func_197093_b()
entities()
public static Collection<? extends Entity>
b(CommandContext<cd> arg0, String arg1)
method_9317(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> arg0, String arg1)
getEntities(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String arg)
func_197097_b(com.mojang.brigadier.context.CommandContext<CommandSource> arg0, String arg1)
getEntities(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name)
public static Collection<? extends Entity>
c(CommandContext<cd> arg0, String arg1)
method_9307(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getOptionalEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> arg0, String arg1)
getOptionalEntities(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String arg)
func_197087_c(com.mojang.brigadier.context.CommandContext<CommandSource> arg0, String arg1)
getEntitiesAllowingNone(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name)
public static Collection<ServerPlayerEntity>
d(CommandContext<cd> arg0, String arg1)
method_9310(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getOptionalPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> arg0, String arg1)
getOptionalPlayers(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String arg)
func_201309_d(com.mojang.brigadier.context.CommandContext<CommandSource> arg0, String arg1)
getPlayersAllowingNone(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name)
public static EntityArgumentType
c()
method_9305()
player()
player()
func_197096_c()
player()
public static ServerPlayerEntity
e(CommandContext<cd> arg0, String arg1)
method_9315(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getPlayer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> arg0, String arg1)
getPlayer(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String arg)
func_197089_d(com.mojang.brigadier.context.CommandContext<CommandSource> arg0, String arg1)
getPlayer(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name)
public static EntityArgumentType
d()
method_9308()
players()
players()
func_197094_d()
players()
public static Collection<ServerPlayerEntity>
f(CommandContext<cd> arg0, String arg1)
method_9312(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> arg0, String arg1)
getPlayers(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, String arg)
func_197090_e(com.mojang.brigadier.context.CommandContext<CommandSource> arg0, String arg1)
getPlayers(com.mojang.brigadier.context.CommandContext<CommandSource> context, String name)
public EntitySelector
a(StringReader arg0)
method_9318(com.mojang.brigadier.StringReader arg0)
method_9318(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> CompletableFuture<Suggestions>
listSuggestions(CommandContext<S> arg0, SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Collection<String>
getExamples()
getExamples()
getExamples()
getExamples()
getExamples()