Package net.minecraft.command.argument
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>
- Mappings:
Namespace Name named net/minecraft/command/argument/EntityArgumentTypeintermediary net/minecraft/class_2186official fg
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final Collection<String> static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType(package private) final boolean(package private) final booleanstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityArgumentType(boolean singleTarget, boolean playersOnly) -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityArgumentTypeentities()static EntityArgumentTypeentity()static Collection<? extends Entity> getEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static EntitygetEntity(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<? extends Entity> getOptionalEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<ServerPlayerEntity> getOptionalPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static ServerPlayerEntitygetPlayer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<ServerPlayerEntity> getPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader stringReader) static EntityArgumentTypeplayer()static EntityArgumentTypeplayers()
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLESLnet/minecraft/command/argument/EntityArgumentType;EXAMPLES:Ljava/util/Collection;intermediary field_9859Lnet/minecraft/class_2186;field_9859:Ljava/util/Collection;official gLfg;g:Ljava/util/Collection;
-
TOO_MANY_ENTITIES_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_MANY_ENTITIES_EXCEPTION- Mappings:
Namespace Name Mixin selector named TOO_MANY_ENTITIES_EXCEPTIONLnet/minecraft/command/argument/EntityArgumentType;TOO_MANY_ENTITIES_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9860Lnet/minecraft/class_2186;field_9860:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official aLfg;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
TOO_MANY_PLAYERS_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_MANY_PLAYERS_EXCEPTION- Mappings:
Namespace Name Mixin selector named TOO_MANY_PLAYERS_EXCEPTIONLnet/minecraft/command/argument/EntityArgumentType;TOO_MANY_PLAYERS_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9864Lnet/minecraft/class_2186;field_9864:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official bLfg;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION- Mappings:
Namespace Name Mixin selector named PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTIONLnet/minecraft/command/argument/EntityArgumentType;PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9861Lnet/minecraft/class_2186;field_9861:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official cLfg;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
ENTITY_NOT_FOUND_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ENTITY_NOT_FOUND_EXCEPTION- Mappings:
Namespace Name Mixin selector named ENTITY_NOT_FOUND_EXCEPTIONLnet/minecraft/command/argument/EntityArgumentType;ENTITY_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9863Lnet/minecraft/class_2186;field_9863:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official dLfg;d:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
PLAYER_NOT_FOUND_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYER_NOT_FOUND_EXCEPTION- Mappings:
Namespace Name Mixin selector named PLAYER_NOT_FOUND_EXCEPTIONLnet/minecraft/command/argument/EntityArgumentType;PLAYER_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9856Lnet/minecraft/class_2186;field_9856:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official eLfg;e:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
NOT_ALLOWED_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NOT_ALLOWED_EXCEPTION- Mappings:
Namespace Name Mixin selector named NOT_ALLOWED_EXCEPTIONLnet/minecraft/command/argument/EntityArgumentType;NOT_ALLOWED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9862Lnet/minecraft/class_2186;field_9862:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official fLfg;f:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
singleTarget
final boolean singleTarget- Mappings:
Namespace Name Mixin selector named singleTargetLnet/minecraft/command/argument/EntityArgumentType;singleTarget:Zintermediary field_9858Lnet/minecraft/class_2186;field_9858:Zofficial hLfg;h:Z
-
playersOnly
final boolean playersOnly- Mappings:
Namespace Name Mixin selector named playersOnlyLnet/minecraft/command/argument/EntityArgumentType;playersOnly:Zintermediary field_9857Lnet/minecraft/class_2186;field_9857:Zofficial iLfg;i:Z
-
-
Constructor Details
-
EntityArgumentType
protected EntityArgumentType(boolean singleTarget, boolean playersOnly) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/command/argument/EntityArgumentType;<init>(ZZ)Vintermediary <init>Lnet/minecraft/class_2186;<init>(ZZ)Vofficial <init>Lfg;<init>(ZZ)V
-
-
Method Details
-
entity
- Mappings:
Namespace Name Mixin selector named entityLnet/minecraft/command/argument/EntityArgumentType;entity()Lnet/minecraft/command/argument/EntityArgumentType;intermediary method_9309Lnet/minecraft/class_2186;method_9309()Lnet/minecraft/class_2186;official aLfg;a()Lfg;
-
getEntity
public static Entity getEntity(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getEntityLnet/minecraft/command/argument/EntityArgumentType;getEntity(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/entity/Entity;intermediary method_9313Lnet/minecraft/class_2186;method_9313(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1297;official aLfg;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lbsr;
-
entities
- Mappings:
Namespace Name Mixin selector named entitiesLnet/minecraft/command/argument/EntityArgumentType;entities()Lnet/minecraft/command/argument/EntityArgumentType;intermediary method_9306Lnet/minecraft/class_2186;method_9306()Lnet/minecraft/class_2186;official bLfg;b()Lfg;
-
getEntities
public static Collection<? extends Entity> getEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getEntitiesLnet/minecraft/command/argument/EntityArgumentType;getEntities(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;intermediary method_9317Lnet/minecraft/class_2186;method_9317(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;official bLfg;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
-
getOptionalEntities
public static Collection<? extends Entity> getOptionalEntities(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getOptionalEntitiesLnet/minecraft/command/argument/EntityArgumentType;getOptionalEntities(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;intermediary method_9307Lnet/minecraft/class_2186;method_9307(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;official cLfg;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
-
getOptionalPlayers
public static Collection<ServerPlayerEntity> getOptionalPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getOptionalPlayersLnet/minecraft/command/argument/EntityArgumentType;getOptionalPlayers(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;intermediary method_9310Lnet/minecraft/class_2186;method_9310(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;official dLfg;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
-
player
- Mappings:
Namespace Name Mixin selector named playerLnet/minecraft/command/argument/EntityArgumentType;player()Lnet/minecraft/command/argument/EntityArgumentType;intermediary method_9305Lnet/minecraft/class_2186;method_9305()Lnet/minecraft/class_2186;official cLfg;c()Lfg;
-
getPlayer
public static ServerPlayerEntity getPlayer(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getPlayerLnet/minecraft/command/argument/EntityArgumentType;getPlayer(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_9315Lnet/minecraft/class_2186;method_9315(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_3222;official eLfg;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Laqv;
-
players
- Mappings:
Namespace Name Mixin selector named playersLnet/minecraft/command/argument/EntityArgumentType;players()Lnet/minecraft/command/argument/EntityArgumentType;intermediary method_9308Lnet/minecraft/class_2186;method_9308()Lnet/minecraft/class_2186;official dLfg;d()Lfg;
-
getPlayers
public static Collection<ServerPlayerEntity> getPlayers(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named getPlayersLnet/minecraft/command/argument/EntityArgumentType;getPlayers(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;intermediary method_9312Lnet/minecraft/class_2186;method_9312(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;official fLfg;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
-
parse
public EntitySelector parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<EntitySelector>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/command/argument/EntityArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/EntitySelector;intermediary method_9318Lnet/minecraft/class_2186;method_9318(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2300;official aLfg;a(Lcom/mojang/brigadier/StringReader;)Lhi;
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<EntitySelector>- Mappings:
Namespace Name Mixin selector named listSuggestionsLnet/minecraft/command/argument/EntityArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_2186;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;official listSuggestionsLfg;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<EntitySelector>
-