Class ComponentPredicateParser.ComponentLookupRule<T,C,P>
java.lang.Object
net.minecraft.util.parsing.packrat.commands.ResourceLookupRule<ComponentPredicateParser.Context<T,C,P>,C>
net.minecraft.commands.arguments.item.ComponentPredicateParser.ComponentLookupRule<T,C,P>
- All Implemented Interfaces:
ResourceSuggestion
,Rule<com.mojang.brigadier.StringReader,
,C> SuggestionSupplier<com.mojang.brigadier.StringReader>
- Enclosing class:
ComponentPredicateParser
static class ComponentPredicateParser.ComponentLookupRule<T,C,P>
extends ResourceLookupRule<ComponentPredicateParser.Context<T,C,P>,C>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.parsing.packrat.Rule
Rule.RuleAction<S,
T>, Rule.SimpleRuleAction<T>, Rule.WrappedTerm<S, T> -
Field Summary
Fields inherited from class net.minecraft.util.parsing.packrat.commands.ResourceLookupRule
context
-
Constructor Summary
ConstructorDescriptionComponentLookupRule
(Atom<ResourceLocation> p_333171_, ComponentPredicateParser.Context<T, C, P> p_336202_) -
Method Summary
Modifier and TypeMethodDescriptionprotected C
validateElement
(com.mojang.brigadier.ImmutableStringReader p_335905_, ResourceLocation p_336332_) Methods inherited from class net.minecraft.util.parsing.packrat.commands.ResourceLookupRule
parse
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.parsing.packrat.commands.ResourceSuggestion
possibleValues
-
Constructor Details
-
ComponentLookupRule
ComponentLookupRule(Atom<ResourceLocation> p_333171_, ComponentPredicateParser.Context<T, C, P> p_336202_)
-
-
Method Details
-
validateElement
protected C validateElement(com.mojang.brigadier.ImmutableStringReader p_335905_, ResourceLocation p_336332_) throws Exception - Specified by:
validateElement
in classResourceLookupRule<ComponentPredicateParser.Context<T,
C, P>, C> - Throws:
Exception
-
possibleResources
-