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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static at.petrak.hexcasting.api.casting.math.HexPattern
    getPattern(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> ctx, String argumentName)
     
    id()
     
    <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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PatternResLocArgument

      public PatternResLocArgument()
  • Method Details

    • id

      public static PatternResLocArgument 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