Class ComponentPredicateParser.PredicateLookupRule<T,C,P>
java.lang.Object
net.minecraft.util.parsing.packrat.commands.ResourceLookupRule<ComponentPredicateParser.Context<T,C,P>, P>
net.minecraft.commands.arguments.item.ComponentPredicateParser.PredicateLookupRule<T,C,P>
- All Implemented Interfaces:
ResourceSuggestion, Rule<StringReader, P>, SuggestionSupplier<StringReader>
- Enclosing class:
ComponentPredicateParser
private static class ComponentPredicateParser.PredicateLookupRule<T,C,P>
extends ResourceLookupRule<ComponentPredicateParser.Context<T,C,P>, P>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Rule
Rule.RuleAction<S,T>, Rule.SimpleRuleAction<S, T>, Rule.WrappedTerm<S, T> -
Field Summary
Fields inherited from class ResourceLookupRule
context -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePredicateLookupRule(NamedRule<StringReader, Identifier> idParser, ComponentPredicateParser.Context<T, C, P> context) -
Method Summary
Modifier and TypeMethodDescriptionprotected PvalidateElement(ImmutableStringReader reader, Identifier id) Methods inherited from class ResourceLookupRule
parseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ResourceSuggestion
possibleValues
-
Constructor Details
-
PredicateLookupRule
private PredicateLookupRule(NamedRule<StringReader, Identifier> idParser, ComponentPredicateParser.Context<T, C, P> context)
-
-
Method Details
-
validateElement
- Specified by:
validateElementin classResourceLookupRule<ComponentPredicateParser.Context<T,C, P>, P> - Throws:
Exception
-
possibleResources
-