Class PatternResLocArgument
java.lang.Object
net.minecraft.commands.arguments.ResourceLocationArgument
at.petrak.hexcasting.common.command.PatternResLocArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.resources.ResourceLocation>
public class PatternResLocArgument
extends net.minecraft.commands.arguments.ResourceLocationArgument
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic at.petrak.hexcasting.api.casting.math.HexPatterngetPattern(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String argumentName) static PatternResLocArgumentid()<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) Methods inherited from class net.minecraft.commands.arguments.ResourceLocationArgument
getAdvancement, getExamples, getId, getItemModifier, getPredicate, getRecipe, parse
-
Constructor Details
-
PatternResLocArgument
public PatternResLocArgument()
-
-
Method Details
-
id
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) -
getPattern
public static at.petrak.hexcasting.api.casting.math.HexPattern getPattern(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String argumentName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-