public class BlockPosArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
OUT_OF_WORLD_EXCEPTION |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
UNLOADED_EXCEPTION |
Constructor and Description |
---|
BlockPosArgumentType() |
Modifier and Type | Method and Description |
---|---|
static BlockPosArgumentType |
blockPos() |
static BlockPos |
getBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
Collection<String> |
getExamples() |
static BlockPos |
getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
PosArgument |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType UNLOADED_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OUT_OF_WORLD_EXCEPTION
public static BlockPosArgumentType blockPos()
public static BlockPos getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static BlockPos getBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>