Package net.minecraft.command.argument
Class EntityAnchorArgumentType
java.lang.Object
net.minecraft.command.argument.EntityAnchorArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgumentType.EntityAnchor>
public class EntityAnchorArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgumentType.EntityAnchor>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityAnchorArgumentType.EntityAnchor -
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLESprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINVALID_ANCHOR_EXCEPTION -
Constructor Summary
Constructors Constructor Description EntityAnchorArgumentType() -
Method Summary
Modifier and Type Method Description static EntityAnchorArgumentTypeentityAnchor()static EntityAnchorArgumentType.EntityAnchorgetEntityAnchor(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)Collection<String>getExamples()<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)EntityAnchorArgumentType.EntityAnchorparse(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
-
INVALID_ANCHOR_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_ANCHOR_EXCEPTION
-
-
Constructor Details
-
EntityAnchorArgumentType
public EntityAnchorArgumentType()
-
-
Method Details
-
getEntityAnchor
public static EntityAnchorArgumentType.EntityAnchor getEntityAnchor(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
entityAnchor
-
parse
public EntityAnchorArgumentType.EntityAnchor parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgumentType.EntityAnchor>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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<EntityAnchorArgumentType.EntityAnchor>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<EntityAnchorArgumentType.EntityAnchor>
-