Class LocationArgumentType
-
- All Implemented Interfaces:
-
com.mojang.brigadier.arguments.ArgumentType
public class LocationArgumentType implements ArgumentType<T>
坐标参数类型
-
-
Method Summary
Modifier and Type Method Description static LocationArgumentType
location()
static Coordinates
getCoordinates(CommandContext<CommandSender> context, String name)
static Location
getLocation(@NonNull() World world, @NonNull() CommandContext<CommandSender> context, @NonNull() String name)
static Location
getLocation(@NonNull() World world, @NonNull() CommandContext<CommandSender> context, @NonNull() String name, @Nullable() Player target)
Coordinates
parse(@NonNull() StringReader reader)
<S> CompletableFuture<Suggestions>
listSuggestions(@NonNull() CommandContext<S> context, @NonNull() SuggestionsBuilder builder)
Collection<String>
getExamples()
-
-
Method Detail
-
location
@NonNull() static LocationArgumentType location()
-
getCoordinates
@NonNull() static Coordinates getCoordinates(CommandContext<CommandSender> context, String name)
-
getLocation
@Nullable() static Location getLocation(@NonNull() World world, @NonNull() CommandContext<CommandSender> context, @NonNull() String name)
-
getLocation
@Nullable() static Location getLocation(@NonNull() World world, @NonNull() CommandContext<CommandSender> context, @NonNull() String name, @Nullable() Player target)
-
parse
@NonNull() Coordinates parse(@NonNull() StringReader reader)
-
listSuggestions
<S> CompletableFuture<Suggestions> listSuggestions(@NonNull() CommandContext<S> context, @NonNull() SuggestionsBuilder builder)
-
getExamples
@NonNull() Collection<String> getExamples()
-
-
-
-