Class IdentifiableParsingRule<C,V>

java.lang.Object
net.minecraft.command.argument.packrat.IdentifiableParsingRule<C,V>
All Implemented Interfaces:
IdentifierSuggestable, ParsingRule<com.mojang.brigadier.StringReader,V>, Suggestable<com.mojang.brigadier.StringReader>
Direct Known Subclasses:
PackratParsing.ComponentParsingRule, PackratParsing.ItemParsingRule, PackratParsing.SubPredicateParsingRule, PackratParsing.TagParsingRule

public abstract class IdentifiableParsingRule<C,V> extends Object implements ParsingRule<com.mojang.brigadier.StringReader,V>, IdentifierSuggestable
Mappings:
Namespace Name
named net/minecraft/command/argument/packrat/IdentifiableParsingRule
intermediary net/minecraft/class_9410
official bpd
  • Field Details

    • symbol

      private final Symbol<Identifier> symbol
      Mappings:
      Namespace Name Mixin selector
      named symbol Lnet/minecraft/command/argument/packrat/IdentifiableParsingRule;symbol:Lnet/minecraft/command/argument/packrat/Symbol;
      intermediary field_49969 Lnet/minecraft/class_9410;field_49969:Lnet/minecraft/class_9387;
      official b Lbpd;b:Lbor;
    • callbacks

      protected final C callbacks
      Mappings:
      Namespace Name Mixin selector
      named callbacks Lnet/minecraft/command/argument/packrat/IdentifiableParsingRule;callbacks:Ljava/lang/Object;
      intermediary field_49968 Lnet/minecraft/class_9410;field_49968:Ljava/lang/Object;
      official a Lbpd;a:Ljava/lang/Object;
  • Constructor Details

    • IdentifiableParsingRule

      protected IdentifiableParsingRule(Symbol<Identifier> symbol, C callbacks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/argument/packrat/IdentifiableParsingRule;<init>(Lnet/minecraft/command/argument/packrat/Symbol;Ljava/lang/Object;)V
      intermediary <init> Lnet/minecraft/class_9410;<init>(Lnet/minecraft/class_9387;Ljava/lang/Object;)V
      official <init> Lbpd;<init>(Lbor;Ljava/lang/Object;)V
  • Method Details

    • parse

      public Optional<V> parse(ParsingState<com.mojang.brigadier.StringReader> state)
      Specified by:
      parse in interface ParsingRule<C,V>
      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 Lbox;a(Lbow;)Ljava/util/Optional;
    • parse

      protected abstract V parse(com.mojang.brigadier.ImmutableStringReader reader, Identifier id) throws Exception
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/packrat/IdentifiableParsingRule;parse(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/util/Identifier;)Ljava/lang/Object;
      intermediary method_58343 Lnet/minecraft/class_9410;method_58343(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/class_2960;)Ljava/lang/Object;
      official a Lbpd;a(Lcom/mojang/brigadier/ImmutableStringReader;Lalz;)Ljava/lang/Object;