Class ResourceLookupRule<C,V>
java.lang.Object
net.minecraft.util.parsing.packrat.commands.ResourceLookupRule<C,V>
- All Implemented Interfaces:
ResourceSuggestion, Rule<StringReader, V>, SuggestionSupplier<StringReader>
- Direct Known Subclasses:
ComponentPredicateParser.ComponentLookupRule, ComponentPredicateParser.ElementLookupRule, ComponentPredicateParser.PredicateLookupRule, ComponentPredicateParser.TagLookupRule
public abstract class ResourceLookupRule<C,V>
extends Object
implements Rule<StringReader, V>, ResourceSuggestion
-
Nested Class Summary
Nested classes/interfaces inherited from interface Rule
Rule.RuleAction<S,T>, Rule.SimpleRuleAction<S, T>, Rule.WrappedTerm<S, T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Cprivate final DelayedException<CommandSyntaxException> private final NamedRule<StringReader, Identifier> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResourceLookupRule(NamedRule<StringReader, Identifier> idParser, C context) -
Method Summary
Modifier and TypeMethodDescription@Nullable Vparse(ParseState<StringReader> state) protected abstract VvalidateElement(ImmutableStringReader reader, Identifier id) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ResourceSuggestion
possibleResources, possibleValues