Interface ParsingRule<S,T>

All Known Implementing Classes:
AnyIdParsingRule, IdentifiableParsingRule, NbtParsingRule, PackratParsing.ComponentParsingRule, PackratParsing.ItemParsingRule, PackratParsing.SubPredicateParsingRule, PackratParsing.TagParsingRule, ParsingRule.SimpleRule

public interface ParsingRule<S,T>
Mappings:
Namespace Name
named net/minecraft/command/argument/packrat/ParsingRule
intermediary net/minecraft/class_9396
official bmq
  • Method Details

    • parse

      Optional<T> parse(ParsingState<S> state)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/packrat/ParsingRule;parse(Lnet/minecraft/command/argument/packrat/ParsingState;)Ljava/util/Optional;
      intermediary method_58318 Lnet/minecraft/class_9396;method_58318(Lnet/minecraft/class_9393;)Ljava/util/Optional;
      official a Lbmq;a(Lbmp;)Ljava/util/Optional;
    • of

      static <S, T> ParsingRule<S,T> of(Term<S> term, ParsingRule.RuleAction<S,T> action)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/command/argument/packrat/ParsingRule;of(Lnet/minecraft/command/argument/packrat/Term;Lnet/minecraft/command/argument/packrat/ParsingRule$RuleAction;)Lnet/minecraft/command/argument/packrat/ParsingRule;
      intermediary method_58320 Lnet/minecraft/class_9396;method_58320(Lnet/minecraft/class_9402;Lnet/minecraft/class_9396$class_9397;)Lnet/minecraft/class_9396;
      official a Lbmq;a(Lbmt;Lbmq$a;)Lbmq;
    • of

      static <S, T> ParsingRule<S,T> of(Term<S> term, ParsingRule.StatelessAction<T> action)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/command/argument/packrat/ParsingRule;of(Lnet/minecraft/command/argument/packrat/Term;Lnet/minecraft/command/argument/packrat/ParsingRule$StatelessAction;)Lnet/minecraft/command/argument/packrat/ParsingRule;
      intermediary method_58321 Lnet/minecraft/class_9396;method_58321(Lnet/minecraft/class_9402;Lnet/minecraft/class_9396$class_9398;)Lnet/minecraft/class_9396;
      official a Lbmq;a(Lbmt;Lbmq$b;)Lbmq;