类 EntityArgumentType

  • 所有已实现的接口:
    com.mojang.brigadier.arguments.ArgumentType<EntitySelector>

    public class EntityArgumentType
    extends Object
    implements com.mojang.brigadier.arguments.ArgumentType<EntitySelector>
    Mappings:
    Namespace Name
    official dq
    intermediary net/minecraft/class_2186
    named net/minecraft/command/argument/EntityArgumentType
    • 字段详细资料

      • EXAMPLES

        private static final Collection<String> EXAMPLES
        Mappings:
        Namespace Name Mixin selector
        official g Ldq;g:Ljava/util/Collection;
        intermediary field_9859 Lnet/minecraft/class_2186;field_9859:Ljava/util/Collection;
        named EXAMPLES Lnet/minecraft/command/argument/EntityArgumentType;EXAMPLES:Ljava/util/Collection;
      • TOO_MANY_ENTITIES_EXCEPTION

        public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_MANY_ENTITIES_EXCEPTION
        Mappings:
        Namespace Name Mixin selector
        official a Ldq;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        intermediary field_9860 Lnet/minecraft/class_2186;field_9860:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        named TOO_MANY_ENTITIES_EXCEPTION Lnet/minecraft/command/argument/EntityArgumentType;TOO_MANY_ENTITIES_EXCEPTION: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
        official b Ldq;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        intermediary field_9864 Lnet/minecraft/class_2186;field_9864:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        named TOO_MANY_PLAYERS_EXCEPTION Lnet/minecraft/command/argument/EntityArgumentType;TOO_MANY_PLAYERS_EXCEPTION: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
        official c Ldq;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        intermediary field_9861 Lnet/minecraft/class_2186;field_9861:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        named PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION Lnet/minecraft/command/argument/EntityArgumentType;PLAYER_SELECTOR_HAS_ENTITIES_EXCEPTION: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
        official d Ldq;d:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        intermediary field_9863 Lnet/minecraft/class_2186;field_9863:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        named ENTITY_NOT_FOUND_EXCEPTION Lnet/minecraft/command/argument/EntityArgumentType;ENTITY_NOT_FOUND_EXCEPTION: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
        official e Ldq;e:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        intermediary field_9856 Lnet/minecraft/class_2186;field_9856:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        named PLAYER_NOT_FOUND_EXCEPTION Lnet/minecraft/command/argument/EntityArgumentType;PLAYER_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      • NOT_ALLOWED_EXCEPTION

        public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NOT_ALLOWED_EXCEPTION
        Mappings:
        Namespace Name Mixin selector
        official f Ldq;f:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        intermediary field_9862 Lnet/minecraft/class_2186;field_9862:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        named NOT_ALLOWED_EXCEPTION Lnet/minecraft/command/argument/EntityArgumentType;NOT_ALLOWED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      • field_32098

        private static final byte field_32098
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official h Ldq;h:B
        intermediary field_32098 Lnet/minecraft/class_2186;field_32098:B
        named field_32098 Lnet/minecraft/command/argument/EntityArgumentType;field_32098:B
      • field_32099

        private static final byte field_32099
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official i Ldq;i:B
        intermediary field_32099 Lnet/minecraft/class_2186;field_32099:B
        named field_32099 Lnet/minecraft/command/argument/EntityArgumentType;field_32099:B
      • singleTarget

        private final boolean singleTarget
        Mappings:
        Namespace Name Mixin selector
        official j Ldq;j:Z
        intermediary field_9858 Lnet/minecraft/class_2186;field_9858:Z
        named singleTarget Lnet/minecraft/command/argument/EntityArgumentType;singleTarget:Z
      • playersOnly

        private final boolean playersOnly
        Mappings:
        Namespace Name Mixin selector
        official k Ldq;k:Z
        intermediary field_9857 Lnet/minecraft/class_2186;field_9857:Z
        named playersOnly Lnet/minecraft/command/argument/EntityArgumentType;playersOnly:Z
    • 构造器详细资料

      • EntityArgumentType

        protected EntityArgumentType​(boolean singleTarget,
                                     boolean playersOnly)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldq;<init>(ZZ)V
        intermediary <init> Lnet/minecraft/class_2186;<init>(ZZ)V
        named <init> Lnet/minecraft/command/argument/EntityArgumentType;<init>(ZZ)V
    • 方法详细资料

      • entity

        public static EntityArgumentType entity()
        Mappings:
        Namespace Name Mixin selector
        official a Ldq;a()Ldq;
        intermediary method_9309 Lnet/minecraft/class_2186;method_9309()Lnet/minecraft/class_2186;
        named entity Lnet/minecraft/command/argument/EntityArgumentType;entity()Lnet/minecraft/command/argument/EntityArgumentType;
      • getEntity

        public static Entity getEntity​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
                                       String name)
                                throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Ldq;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lasl;
        intermediary method_9313 Lnet/minecraft/class_2186;method_9313(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1297;
        named getEntity Lnet/minecraft/command/argument/EntityArgumentType;getEntity(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/entity/Entity;
      • entities

        public static EntityArgumentType entities()
        Mappings:
        Namespace Name Mixin selector
        official b Ldq;b()Ldq;
        intermediary method_9306 Lnet/minecraft/class_2186;method_9306()Lnet/minecraft/class_2186;
        named entities Lnet/minecraft/command/argument/EntityArgumentType;entities()Lnet/minecraft/command/argument/EntityArgumentType;
      • getEntities

        public static Collection<? extends Entity> getEntities​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
                                                               String name)
                                                        throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official b Ldq;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
        intermediary method_9317 Lnet/minecraft/class_2186;method_9317(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
        named getEntities Lnet/minecraft/command/argument/EntityArgumentType;getEntities(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      • getOptionalEntities

        public static Collection<? extends Entity> getOptionalEntities​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
                                                                       String string)
                                                                throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official c Ldq;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
        intermediary method_9307 Lnet/minecraft/class_2186;method_9307(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
        named getOptionalEntities Lnet/minecraft/command/argument/EntityArgumentType;getOptionalEntities(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      • getOptionalPlayers

        public static Collection<ServerPlayerEntity> getOptionalPlayers​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
                                                                        String string)
                                                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official d Ldq;d(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
        intermediary method_9310 Lnet/minecraft/class_2186;method_9310(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
        named getOptionalPlayers Lnet/minecraft/command/argument/EntityArgumentType;getOptionalPlayers(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      • player

        public static EntityArgumentType player()
        Mappings:
        Namespace Name Mixin selector
        official c Ldq;c()Ldq;
        intermediary method_9305 Lnet/minecraft/class_2186;method_9305()Lnet/minecraft/class_2186;
        named player Lnet/minecraft/command/argument/EntityArgumentType;player()Lnet/minecraft/command/argument/EntityArgumentType;
      • getPlayer

        public static ServerPlayerEntity getPlayer​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
                                                   String string)
                                            throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official e Ldq;e(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Labk;
        intermediary method_9315 Lnet/minecraft/class_2186;method_9315(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_3222;
        named getPlayer Lnet/minecraft/command/argument/EntityArgumentType;getPlayer(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/server/network/ServerPlayerEntity;
      • players

        public static EntityArgumentType players()
        Mappings:
        Namespace Name Mixin selector
        official d Ldq;d()Ldq;
        intermediary method_9308 Lnet/minecraft/class_2186;method_9308()Lnet/minecraft/class_2186;
        named players Lnet/minecraft/command/argument/EntityArgumentType;players()Lnet/minecraft/command/argument/EntityArgumentType;
      • getPlayers

        public static Collection<ServerPlayerEntity> getPlayers​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
                                                                String string)
                                                         throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official f Ldq;f(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
        intermediary method_9312 Lnet/minecraft/class_2186;method_9312(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
        named getPlayers Lnet/minecraft/command/argument/EntityArgumentType;getPlayers(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
        指定者:
        parse 在接口中 com.mojang.brigadier.arguments.ArgumentType<EntitySelector>
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Ldq;a(Lcom/mojang/brigadier/StringReader;)Lfh;
        intermediary method_9318 Lnet/minecraft/class_2186;method_9318(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2300;
        named parse Lnet/minecraft/command/argument/EntityArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/EntitySelector;
      • listSuggestions

        public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions​(com.mojang.brigadier.context.CommandContext<S> context,
                                                                                                  com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
        指定者:
        listSuggestions 在接口中 com.mojang.brigadier.arguments.ArgumentType<EntitySelector>
        Mappings:
        Namespace Name Mixin selector
        official listSuggestions Ldq;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
        intermediary listSuggestions Lnet/minecraft/class_2186;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
        named listSuggestions Lnet/minecraft/command/argument/EntityArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      • getExamples

        public Collection<String> getExamples()
        指定者:
        getExamples 在接口中 com.mojang.brigadier.arguments.ArgumentType<EntitySelector>
        Mappings:
        Namespace Name Mixin selector
        official getExamples Ldq;getExamples()Ljava/util/Collection;
        intermediary getExamples Lnet/minecraft/class_2186;getExamples()Ljava/util/Collection;
        named getExamples Lnet/minecraft/command/argument/EntityArgumentType;getExamples()Ljava/util/Collection;