Package net.minecraft.command.argument
Class BlockPosArgumentType
java.lang.Object
net.minecraft.command.argument.BlockPosArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<PosArgument>
public class BlockPosArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>
- Mappings:
Namespace Name named net/minecraft/command/argument/BlockPosArgumentType
intermediary net/minecraft/class_2262
official gs
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection
<String> static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPosArgumentType
blockPos()
static BlockPos
getBlockPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static BlockPos
getLoadedBlockPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static BlockPos
getLoadedBlockPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, ServerWorld world, String name) static BlockPos
getValidBlockPos
(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) parse
(com.mojang.brigadier.StringReader stringReader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector named EXAMPLES
Lnet/minecraft/command/argument/BlockPosArgumentType;EXAMPLES:Ljava/util/Collection;
intermediary field_10702
Lnet/minecraft/class_2262;field_10702:Ljava/util/Collection;
official d
Lgs;d:Ljava/util/Collection;
-
UNLOADED_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType UNLOADED_EXCEPTION- Mappings:
Namespace Name Mixin selector named UNLOADED_EXCEPTION
Lnet/minecraft/command/argument/BlockPosArgumentType;UNLOADED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_10703
Lnet/minecraft/class_2262;field_10703:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
official a
Lgs;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
OUT_OF_WORLD_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OUT_OF_WORLD_EXCEPTION- Mappings:
Namespace Name Mixin selector named OUT_OF_WORLD_EXCEPTION
Lnet/minecraft/command/argument/BlockPosArgumentType;OUT_OF_WORLD_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_10704
Lnet/minecraft/class_2262;field_10704:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
official b
Lgs;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
OUT_OF_BOUNDS_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OUT_OF_BOUNDS_EXCEPTION- Mappings:
Namespace Name Mixin selector named OUT_OF_BOUNDS_EXCEPTION
Lnet/minecraft/command/argument/BlockPosArgumentType;OUT_OF_BOUNDS_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_29499
Lnet/minecraft/class_2262;field_29499:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
official c
Lgs;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Constructor Details
-
BlockPosArgumentType
public BlockPosArgumentType()
-
-
Method Details
-
blockPos
- Mappings:
Namespace Name Mixin selector named blockPos
Lnet/minecraft/command/argument/BlockPosArgumentType;blockPos()Lnet/minecraft/command/argument/BlockPosArgumentType;
intermediary method_9698
Lnet/minecraft/class_2262;method_9698()Lnet/minecraft/class_2262;
official a
Lgs;a()Lgs;
-
getLoadedBlockPos
public static BlockPos getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getLoadedBlockPos
Lnet/minecraft/command/argument/BlockPosArgumentType;getLoadedBlockPos(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/math/BlockPos;
intermediary method_9696
Lnet/minecraft/class_2262;method_9696(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2338;
official a
Lgs;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljh;
-
getLoadedBlockPos
public static BlockPos getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, ServerWorld world, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getLoadedBlockPos
Lnet/minecraft/command/argument/BlockPosArgumentType;getLoadedBlockPos(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/server/world/ServerWorld;Ljava/lang/String;)Lnet/minecraft/util/math/BlockPos;
intermediary method_48298
Lnet/minecraft/class_2262;method_48298(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_3218;Ljava/lang/String;)Lnet/minecraft/class_2338;
official a
Lgs;a(Lcom/mojang/brigadier/context/CommandContext;Lash;Ljava/lang/String;)Ljh;
-
getBlockPos
public static BlockPos getBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector named getBlockPos
Lnet/minecraft/command/argument/BlockPosArgumentType;getBlockPos(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/math/BlockPos;
intermediary method_48299
Lnet/minecraft/class_2262;method_48299(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2338;
official b
Lgs;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljh;
-
getValidBlockPos
public static BlockPos getValidBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named getValidBlockPos
Lnet/minecraft/command/argument/BlockPosArgumentType;getValidBlockPos(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/math/BlockPos;
intermediary method_9697
Lnet/minecraft/class_2262;method_9697(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2338;
official c
Lgs;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljh;
-
parse
public PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/BlockPosArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/PosArgument;
intermediary method_9699
Lnet/minecraft/class_2262;method_9699(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2267;
official a
Lgs;a(Lcom/mojang/brigadier/StringReader;)Lgu;
-
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:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
- Mappings:
Namespace Name Mixin selector named listSuggestions
Lnet/minecraft/command/argument/BlockPosArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary listSuggestions
Lnet/minecraft/class_2262;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
official listSuggestions
Lgs;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-