Class SpellTierArgument
java.lang.Object
com.binaris.wizardry.content.command.argument.SpellTierArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<SpellTier>
public class SpellTierArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<SpellTier>
Custom argument type for spell tier objects in commands.
This provides proper type safety and validation for spell tier arguments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpellTiergetTier(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> 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 reader) static SpellTierArgumenttier()
-
Constructor Details
-
SpellTierArgument
public SpellTierArgument()
-
-
Method Details
-
tier
-
getTier
-
parse
public SpellTier parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<SpellTier>- 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<SpellTier>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<SpellTier>
-