public class EntityArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<EntitySelector>
修飾子とタイプ | クラスと説明 |
---|---|
static class |
EntityArgument.Serializer |
修飾子とタイプ | フィールドと説明 |
---|---|
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ENTITY_NOT_FOUND |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ONLY_PLAYERS_ALLOWED |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
PLAYER_NOT_FOUND |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
SELECTOR_NOT_ALLOWED |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
TOO_MANY_ENTITIES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
TOO_MANY_PLAYERS |
修飾子 | コンストラクタと説明 |
---|---|
protected |
EntityArgument(boolean singleIn,
boolean playersOnlyIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
static EntityArgument |
entities() |
static EntityArgument |
entity() |
static java.util.Collection<? extends Entity> |
getEntities(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static java.util.Collection<? extends Entity> |
getEntitiesAllowingNone(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static Entity |
getEntity(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
java.util.Collection<java.lang.String> |
getExamples() |
static ServerPlayerEntity |
getPlayer(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static java.util.Collection<ServerPlayerEntity> |
getPlayers(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static java.util.Collection<ServerPlayerEntity> |
getPlayersAllowingNone(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_,
com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) |
EntitySelector |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
static EntityArgument |
player() |
static EntityArgument |
players() |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_MANY_ENTITIES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_MANY_PLAYERS
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ONLY_PLAYERS_ALLOWED
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ENTITY_NOT_FOUND
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PLAYER_NOT_FOUND
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType SELECTOR_NOT_ALLOWED
public static EntityArgument entity()
public static Entity getEntity(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static EntityArgument entities()
public static java.util.Collection<? extends Entity> getEntities(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static java.util.Collection<? extends Entity> getEntitiesAllowingNone(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static java.util.Collection<ServerPlayerEntity> getPlayersAllowingNone(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static EntityArgument player()
public static ServerPlayerEntity getPlayer(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static EntityArgument players()
public static java.util.Collection<ServerPlayerEntity> getPlayers(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public EntitySelector parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
インタフェース内 com.mojang.brigadier.arguments.ArgumentType<EntitySelector>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
listSuggestions
インタフェース内 com.mojang.brigadier.arguments.ArgumentType<EntitySelector>
public java.util.Collection<java.lang.String> getExamples()
getExamples
インタフェース内 com.mojang.brigadier.arguments.ArgumentType<EntitySelector>