Class ParsingState<S>
java.lang.Object
net.minecraft.command.argument.packrat.ParsingState<S>
- Direct Known Subclasses:
ParsingStateImpl
- Mappings:
Namespace Name named net/minecraft/command/argument/packrat/ParsingState
intermediary net/minecraft/class_9393
official bow
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ParseErrorList
<S> private final Map
<ParsingState.PackratKey<?>, ParsingState.PackratCache<?>> private final ParsingRules
<S> -
Constructor Summary
ModifierConstructorDescriptionprotected
ParsingState
(ParsingRules<S> rules, ParseErrorList<S> errors) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> @Nullable ParsingState.PackratCache
<T> getCache
(ParsingState.PackratKey<T> key) abstract int
abstract S
<T> Optional
<T> private <T> void
putCache
(ParsingState.PackratKey<T> key, Optional<T> value) abstract void
setCursor
(int cursor) <T> Optional
<T> startParsing
(Symbol<T> startSymbol)
-
Field Details
-
packrats
- Mappings:
Namespace Name Mixin selector named packrats
Lnet/minecraft/command/argument/packrat/ParsingState;packrats:Ljava/util/Map;
intermediary field_49963
Lnet/minecraft/class_9393;field_49963:Ljava/util/Map;
official a
Lbow;a:Ljava/util/Map;
-
rules
- Mappings:
Namespace Name Mixin selector named rules
Lnet/minecraft/command/argument/packrat/ParsingState;rules:Lnet/minecraft/command/argument/packrat/ParsingRules;
intermediary field_49964
Lnet/minecraft/class_9393;field_49964:Lnet/minecraft/class_9389;
official b
Lbow;b:Lbot;
-
errors
- Mappings:
Namespace Name Mixin selector named errors
Lnet/minecraft/command/argument/packrat/ParsingState;errors:Lnet/minecraft/command/argument/packrat/ParseErrorList;
intermediary field_49965
Lnet/minecraft/class_9393;field_49965:Lnet/minecraft/class_9390;
official c
Lbow;c:Lbou;
-
-
Constructor Details
-
ParsingState
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/command/argument/packrat/ParsingState;<init>(Lnet/minecraft/command/argument/packrat/ParsingRules;Lnet/minecraft/command/argument/packrat/ParseErrorList;)V
intermediary <init>
Lnet/minecraft/class_9393;<init>(Lnet/minecraft/class_9389;Lnet/minecraft/class_9390;)V
official <init>
Lbow;<init>(Lbot;Lbou;)V
-
-
Method Details
-
getErrors
- Mappings:
Namespace Name Mixin selector named getErrors
Lnet/minecraft/command/argument/packrat/ParsingState;getErrors()Lnet/minecraft/command/argument/packrat/ParseErrorList;
intermediary method_58310
Lnet/minecraft/class_9393;method_58310()Lnet/minecraft/class_9390;
official a
Lbow;a()Lbou;
-
startParsing
- Mappings:
Namespace Name Mixin selector named startParsing
Lnet/minecraft/command/argument/packrat/ParsingState;startParsing(Lnet/minecraft/command/argument/packrat/Symbol;)Ljava/util/Optional;
intermediary method_58312
Lnet/minecraft/class_9393;method_58312(Lnet/minecraft/class_9387;)Ljava/util/Optional;
official a
Lbow;a(Lbor;)Ljava/util/Optional;
-
parse
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/command/argument/packrat/ParsingState;parse(Lnet/minecraft/command/argument/packrat/Symbol;)Ljava/util/Optional;
intermediary method_58316
Lnet/minecraft/class_9393;method_58316(Lnet/minecraft/class_9387;)Ljava/util/Optional;
official b
Lbow;b(Lbor;)Ljava/util/Optional;
-
getCache
@Nullable private <T> @Nullable ParsingState.PackratCache<T> getCache(ParsingState.PackratKey<T> key) - Mappings:
Namespace Name Mixin selector named getCache
Lnet/minecraft/command/argument/packrat/ParsingState;getCache(Lnet/minecraft/command/argument/packrat/ParsingState$PackratKey;)Lnet/minecraft/command/argument/packrat/ParsingState$PackratCache;
intermediary method_58313
Lnet/minecraft/class_9393;method_58313(Lnet/minecraft/class_9393$class_9395;)Lnet/minecraft/class_9393$class_9394;
official a
Lbow;a(Lbow$b;)Lbow$a;
-
putCache
- Mappings:
Namespace Name Mixin selector named putCache
Lnet/minecraft/command/argument/packrat/ParsingState;putCache(Lnet/minecraft/command/argument/packrat/ParsingState$PackratKey;Ljava/util/Optional;)V
intermediary method_58314
Lnet/minecraft/class_9393;method_58314(Lnet/minecraft/class_9393$class_9395;Ljava/util/Optional;)V
official a
Lbow;a(Lbow$b;Ljava/util/Optional;)V
-
getReader
- Mappings:
Namespace Name Mixin selector named getReader
Lnet/minecraft/command/argument/packrat/ParsingState;getReader()Ljava/lang/Object;
intermediary method_58315
Lnet/minecraft/class_9393;method_58315()Ljava/lang/Object;
official b
Lbow;b()Ljava/lang/Object;
-
getCursor
public abstract int getCursor()- Mappings:
Namespace Name Mixin selector named getCursor
Lnet/minecraft/command/argument/packrat/ParsingState;getCursor()I
intermediary method_58317
Lnet/minecraft/class_9393;method_58317()I
official c
Lbow;c()I
-
setCursor
public abstract void setCursor(int cursor) - Mappings:
Namespace Name Mixin selector named setCursor
Lnet/minecraft/command/argument/packrat/ParsingState;setCursor(I)V
intermediary method_58311
Lnet/minecraft/class_9393;method_58311(I)V
official a
Lbow;a(I)V
-