Class EntityAnchorArgument
java.lang.Object
net.minecraft.commands.arguments.EntityAnchorArgument
- All Implemented Interfaces:
ArgumentType<EntityAnchorArgument.Anchor>
public class EntityAnchorArgument
extends Object
implements ArgumentType<EntityAnchorArgument.Anchor>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DynamicCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityAnchorArgumentanchor()static EntityAnchorArgument.AnchorgetAnchor(CommandContext<CommandSourceStack> context, String name) listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
EXAMPLES
-
ERROR_INVALID
-
-
Constructor Details
-
EntityAnchorArgument
public EntityAnchorArgument()
-
-
Method Details
-
getAnchor
public static EntityAnchorArgument.Anchor getAnchor(CommandContext<CommandSourceStack> context, String name) -
anchor
-
parse
- Specified by:
parsein interfaceArgumentType<EntityAnchorArgument.Anchor>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<EntityAnchorArgument.Anchor>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<EntityAnchorArgument.Anchor>
-