Package net.minecraft.commands.arguments
Class EntityAnchorArgument
java.lang.Object
net.minecraft.commands.arguments.EntityAnchorArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgument.Anchor>
public class EntityAnchorArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgument.Anchor>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityAnchorArgument
anchor()
static EntityAnchorArgument.Anchor
getAnchor(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_90354_, String p_90355_)
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_90360_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_90361_)
parse(com.mojang.brigadier.StringReader p_90352_)
-
Field Details
-
EXAMPLES
-
ERROR_INVALID
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID
-
-
Constructor Details
-
EntityAnchorArgument
public EntityAnchorArgument()
-
-
Method Details
-
getAnchor
public static EntityAnchorArgument.Anchor getAnchor(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_90354_, String p_90355_) -
anchor
-
parse
public EntityAnchorArgument.Anchor parse(com.mojang.brigadier.StringReader p_90352_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgument.Anchor>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_90360_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_90361_)- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgument.Anchor>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgument.Anchor>
-