net.minecraft.commands.arguments

public class EntityArgument

implements com.mojang.brigadier.arguments.ArgumentType<EntitySelector>

fj
net.minecraft.commands.arguments.EntityArgument
net.minecraft.class_2186
net.minecraft.command.argument.EntityArgumentType
net.minecraft.commands.arguments.ArgumentEntity

Field summary

Modifier and TypeField
private static final Collection<String>
g
EXAMPLES
field_9859
EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
a
ERROR_NOT_SINGLE_ENTITY
field_9860
TOO_MANY_ENTITIES_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
b
ERROR_NOT_SINGLE_PLAYER
field_9864
TOO_MANY_PLAYERS_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
c
ERROR_ONLY_PLAYERS_ALLOWED
field_9861
PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
d
NO_ENTITIES_FOUND
field_9863
ENTITY_NOT_FOUND_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
e
NO_PLAYERS_FOUND
field_9856
PLAYER_NOT_FOUND_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
f
ERROR_SELECTORS_NOT_ALLOWED
field_9862
NOT_ALLOWED_EXCEPTION
final boolean
h
single
field_9858
singleTarget
final boolean
i
playersOnly
field_9857
playersOnly

Constructor summary

ModifierConstructor
protected (boolean singleTarget, boolean playersOnly)

Method summary

Modifier and TypeMethod
public static EntityArgument
a()
entity()
method_9309()
entity()
public static Entity
a(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getEntity(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_9313(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEntity(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static EntityArgument
b()
entities()
method_9306()
entities()
public static Collection<? extends Entity>
b(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getEntities(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_9317(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Collection<? extends Entity>
c(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getOptionalEntities(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_9307(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getOptionalEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static Collection<ServerPlayer>
d(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getOptionalPlayers(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_9310(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getOptionalPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static EntityArgument
c()
player()
method_9305()
player()
public static ServerPlayer
e(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getPlayer(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_9315(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getPlayer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static EntityArgument
d()
players()
method_9308()
players()
public static Collection<ServerPlayer>
f(com.mojang.brigadier.context.CommandContext<ew> arg0, String arg1)
getPlayers(com.mojang.brigadier.context.CommandContext<CommandSourceStack> arg0, String arg1)
method_9312(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public EntitySelector
a(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
method_61178(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> EntitySelector
a(com.mojang.brigadier.StringReader arg0, S arg1)
parse(com.mojang.brigadier.StringReader arg0, S arg1)
method_61179(com.mojang.brigadier.StringReader arg0, S arg1)
parse(com.mojang.brigadier.StringReader arg0, S arg1)
private EntitySelector
a(com.mojang.brigadier.StringReader arg0, boolean arg1)
parse(com.mojang.brigadier.StringReader arg0, boolean arg1)
method_9318(com.mojang.brigadier.StringReader arg0, boolean arg1)
parse(com.mojang.brigadier.StringReader reader, boolean allowAtSelectors)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
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> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
public Collection<String>
getExamples()
getExamples()