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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPosArgumentblockPos()static BlockPosgetBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) static BlockPosgetLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) static BlockPosgetLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ServerLevel pLevel, String pName) static BlockPosgetSpawnablePos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder) parse(com.mojang.brigadier.StringReader p_118241_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
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> pContext, String pName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getLoadedBlockPos
public static BlockPos getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ServerLevel pLevel, String pName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getBlockPos
public static BlockPos getBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
getSpawnablePos
public static BlockPos getSpawnablePos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) 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:
parsein 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> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pBuilder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>
-