Class HexPatternMatcher

java.lang.Object
at.petrak.hexcasting.interop.inline.HexPatternMatcher
All Implemented Interfaces:
com.samsthenerd.inline.api.matching.ContinuousMatcher, com.samsthenerd.inline.api.matching.InlineMatcher, com.samsthenerd.inline.api.matching.RegexMatcher

public class HexPatternMatcher extends Object implements com.samsthenerd.inline.api.matching.RegexMatcher
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.samsthenerd.inline.api.matching.ContinuousMatcher

    com.samsthenerd.inline.api.matching.ContinuousMatcher.ContinuousMatchResult

    Nested classes/interfaces inherited from interface com.samsthenerd.inline.api.matching.RegexMatcher

    com.samsthenerd.inline.api.matching.RegexMatcher.ChatStandard, com.samsthenerd.inline.api.matching.RegexMatcher.Simple, com.samsthenerd.inline.api.matching.RegexMatcher.Standard
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
    Get the ID for this matcher
    com.samsthenerd.inline.api.matching.MatcherInfo
     
    com.samsthenerd.inline.api.matching.InlineMatch
    getMatch(MatchResult mr, com.samsthenerd.inline.api.matching.MatchContext ctx)
     
    @NotNull net.minecraft.util.Tuple<com.samsthenerd.inline.api.matching.InlineMatch,Integer>
    getMatchAndGroup(MatchResult regexMatch, com.samsthenerd.inline.api.matching.MatchContext ctx)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.samsthenerd.inline.api.matching.ContinuousMatcher

    match

    Methods inherited from interface com.samsthenerd.inline.api.matching.RegexMatcher

    match
  • Field Details

  • Constructor Details

    • HexPatternMatcher

      public HexPatternMatcher()
  • Method Details

    • getRegex

      public Pattern getRegex()
      Specified by:
      getRegex in interface com.samsthenerd.inline.api.matching.RegexMatcher
    • getMatchAndGroup

      @NotNull public @NotNull net.minecraft.util.Tuple<com.samsthenerd.inline.api.matching.InlineMatch,Integer> getMatchAndGroup(MatchResult regexMatch, com.samsthenerd.inline.api.matching.MatchContext ctx)
      Specified by:
      getMatchAndGroup in interface com.samsthenerd.inline.api.matching.RegexMatcher
    • getMatch

      @Nullable public com.samsthenerd.inline.api.matching.InlineMatch getMatch(MatchResult mr, com.samsthenerd.inline.api.matching.MatchContext ctx)
      Specified by:
      getMatch in interface com.samsthenerd.inline.api.matching.RegexMatcher
    • getInfo

      public com.samsthenerd.inline.api.matching.MatcherInfo getInfo()
      Specified by:
      getInfo in interface com.samsthenerd.inline.api.matching.InlineMatcher
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Get the ID for this matcher
      Specified by:
      getId in interface com.samsthenerd.inline.api.matching.InlineMatcher
      Returns:
      matcher's ID