Class LevelRegionDataArgumentType
java.lang.Object
de.z0rdak.yawp.commands.arguments.LevelRegionDataArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<LevelRegionData>
public class LevelRegionDataArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<LevelRegionData>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LevelRegionDatagetDimRegion(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String dim) static LevelRegionDataArgumentType<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 reader) 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
-
Constructor Details
-
LevelRegionDataArgumentType
public LevelRegionDataArgumentType()
-
-
Method Details
-
levelData
-
getDimRegion
public static LevelRegionData getDimRegion(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String dim) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 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) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<LevelRegionData>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<LevelRegionData>
-
parse
public LevelRegionData parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<LevelRegionData>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-