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 official fiintermediary net/minecraft/class_2262named net/minecraft/command/argument/BlockPosArgumentType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Collection<String>static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPosArgumentTypeblockPos()static BlockPosgetBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static BlockPosgetLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static BlockPosgetLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, ServerWorld world, String name) static BlockPosgetValidBlockPos(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)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official dLfi;d:Ljava/util/Collection;intermediary field_10702Lnet/minecraft/class_2262;field_10702:Ljava/util/Collection;named EXAMPLESLnet/minecraft/command/argument/BlockPosArgumentType;EXAMPLES:Ljava/util/Collection;
-
UNLOADED_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType UNLOADED_EXCEPTION- Mappings:
Namespace Name Mixin selector official aLfi;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_10703Lnet/minecraft/class_2262;field_10703:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named UNLOADED_EXCEPTIONLnet/minecraft/command/argument/BlockPosArgumentType;UNLOADED_EXCEPTION: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 official bLfi;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_10704Lnet/minecraft/class_2262;field_10704:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named OUT_OF_WORLD_EXCEPTIONLnet/minecraft/command/argument/BlockPosArgumentType;OUT_OF_WORLD_EXCEPTION: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 official cLfi;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_29499Lnet/minecraft/class_2262;field_29499:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named OUT_OF_BOUNDS_EXCEPTIONLnet/minecraft/command/argument/BlockPosArgumentType;OUT_OF_BOUNDS_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Constructor Details
-
BlockPosArgumentType
public BlockPosArgumentType()
-
-
Method Details
-
blockPos
- Mappings:
Namespace Name Mixin selector official aLfi;a()Lfi;intermediary method_9698Lnet/minecraft/class_2262;method_9698()Lnet/minecraft/class_2262;named blockPosLnet/minecraft/command/argument/BlockPosArgumentType;blockPos()Lnet/minecraft/command/argument/BlockPosArgumentType;
-
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 official aLfi;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lgu;intermediary method_9696Lnet/minecraft/class_2262;method_9696(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2338;named getLoadedBlockPosLnet/minecraft/command/argument/BlockPosArgumentType;getLoadedBlockPos(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/math/BlockPos;
-
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 official aLfi;a(Lcom/mojang/brigadier/context/CommandContext;Laif;Ljava/lang/String;)Lgu;intermediary method_48298Lnet/minecraft/class_2262;method_48298(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_3218;Ljava/lang/String;)Lnet/minecraft/class_2338;named getLoadedBlockPosLnet/minecraft/command/argument/BlockPosArgumentType;getLoadedBlockPos(Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/server/world/ServerWorld;Ljava/lang/String;)Lnet/minecraft/util/math/BlockPos;
-
getBlockPos
public static BlockPos getBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector official bLfi;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lgu;intermediary method_48299Lnet/minecraft/class_2262;method_48299(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2338;named getBlockPosLnet/minecraft/command/argument/BlockPosArgumentType;getBlockPos(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/math/BlockPos;
-
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 official cLfi;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lgu;intermediary method_9697Lnet/minecraft/class_2262;method_9697(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2338;named getValidBlockPosLnet/minecraft/command/argument/BlockPosArgumentType;getValidBlockPos(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/math/BlockPos;
-
parse
public PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLfi;a(Lcom/mojang/brigadier/StringReader;)Lfk;intermediary method_9699Lnet/minecraft/class_2262;method_9699(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2267;named parseLnet/minecraft/command/argument/BlockPosArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/PosArgument;
-
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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>- Mappings:
Namespace Name Mixin selector official listSuggestionsLfi;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_2262;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named listSuggestionsLnet/minecraft/command/argument/BlockPosArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-