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.ContinuousMatchResultNested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationgetId()Get the ID for this matchercom.samsthenerd.inline.api.matching.MatcherInfogetInfo()com.samsthenerd.inline.api.matching.InlineMatchgetMatch(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) getRegex()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.samsthenerd.inline.api.matching.ContinuousMatcher
matchMethods inherited from interface com.samsthenerd.inline.api.matching.RegexMatcher
match
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
HexPatternMatcher
public HexPatternMatcher()
-
-
Method Details
-
getRegex
- Specified by:
getRegexin interfacecom.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:
getMatchAndGroupin interfacecom.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:
getMatchin interfacecom.samsthenerd.inline.api.matching.RegexMatcher
-
getInfo
public com.samsthenerd.inline.api.matching.MatcherInfo getInfo()- Specified by:
getInfoin interfacecom.samsthenerd.inline.api.matching.InlineMatcher
-
getId
public net.minecraft.resources.ResourceLocation getId()Get the ID for this matcher- Specified by:
getIdin interfacecom.samsthenerd.inline.api.matching.InlineMatcher- Returns:
- matcher's ID
-