Class AddRegionChildArgumentType
java.lang.Object
de.z0rdak.yawp.commands.arguments.region.AddRegionChildArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<String>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) Lists possible regions which can be added as children.parse(com.mojang.brigadier.StringReader reader) static AddRegionChildArgumentTypeUsing this as an actual argument does not work on a server-side only mod, because it needs to be registered in the corresponding registry.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
-
VALID_NAME_PATTERN
-
-
Constructor Details
-
AddRegionChildArgumentType
public AddRegionChildArgumentType()
-
-
Method Details
-
potentialChildRegions
Using this as an actual argument does not work on a server-side only mod, because it needs to be registered in the corresponding registry. -
parse
public String parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<String>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) Lists possible regions which can be added as children.
These are most likely only regions which have the dimensional region as their parent and are fully contained in the area of the parent region.- Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<String>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<String>
-