net.minecraft.command.argument

public class BlockPosArgumentType

implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>

net.minecraft.commands.arguments.coordinates.BlockPosArgument
net.minecraft.class_2262
net.minecraft.command.argument.BlockPosArgumentType

Field summary

Modifier and TypeField
private static final Collection<String>
EXAMPLES
field_10702
EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_NOT_LOADED
field_10703
UNLOADED_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_OUT_OF_WORLD
field_10704
OUT_OF_WORLD_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_OUT_OF_BOUNDS
field_29499
OUT_OF_BOUNDS_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static BlockPosArgumentType
blockPos()
method_9698()
blockPos()
public static BlockPos
getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_9696(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static BlockPos
getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, ServerLevel level, String name)
method_48298(com.mojang.brigadier.context.CommandContext<class_2168> arg0, class_3218 arg1, String arg2)
getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, ServerWorld world, String name)
public static BlockPos
getBlockPos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_48299(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static BlockPos
getSpawnablePos(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name)
method_9697(com.mojang.brigadier.context.CommandContext<class_2168> arg0, String arg1)
getValidBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public PosArgument
parse(com.mojang.brigadier.StringReader reader)
method_9699(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader arg0)
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
public Collection<String>
getExamples()
public Object
parse(com.mojang.brigadier.StringReader reader)
parse(com.mojang.brigadier.StringReader arg0)
parse(com.mojang.brigadier.StringReader reader)