Class BlockPosArgument
java.lang.Object
net.minecraft.commands.arguments.coordinates.BlockPosArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>
public class BlockPosArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Coordinates>
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPosArgument
blockPos()
static BlockPos
getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_118243_, String p_118244_)
static BlockPos
getSpawnablePos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_174396_, String p_174397_)
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_118250_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_118251_)
parse(com.mojang.brigadier.StringReader p_118241_)
-
Field Details
-
EXAMPLES
-
ERROR_NOT_LOADED
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_LOADED -
ERROR_OUT_OF_WORLD
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_OUT_OF_WORLD -
ERROR_OUT_OF_BOUNDS
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_OUT_OF_BOUNDS
-
-
Constructor Details
-
BlockPosArgument
public BlockPosArgument()
-
-
Method Details
-
blockPos
-
getLoadedBlockPos
public static BlockPos getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_118243_, String p_118244_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSpawnablePos
public static BlockPos getSpawnablePos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_174396_, String p_174397_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public Coordinates parse(com.mojang.brigadier.StringReader p_118241_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_118250_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_118251_)- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>
-