Class ComponentPredicateParser.ElementLookupRule<T,C,P>
java.lang.Object
net.minecraft.util.parsing.packrat.commands.ResourceLookupRule<ComponentPredicateParser.Context<T,C,P>,T>
net.minecraft.commands.arguments.item.ComponentPredicateParser.ElementLookupRule<T,C,P>
- All Implemented Interfaces:
ResourceSuggestion
,Rule<com.mojang.brigadier.StringReader,
,T> SuggestionSupplier<com.mojang.brigadier.StringReader>
- Enclosing class:
ComponentPredicateParser
static class ComponentPredicateParser.ElementLookupRule<T,C,P>
extends ResourceLookupRule<ComponentPredicateParser.Context<T,C,P>,T>
-
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
ConstructorDescriptionElementLookupRule
(Atom<ResourceLocation> p_335457_, ComponentPredicateParser.Context<T, C, P> p_335797_) -
Method Summary
Modifier and TypeMethodDescriptionprotected T
validateElement
(com.mojang.brigadier.ImmutableStringReader p_335629_, ResourceLocation p_335530_) 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
-
ElementLookupRule
ElementLookupRule(Atom<ResourceLocation> p_335457_, ComponentPredicateParser.Context<T, C, P> p_335797_)
-
-
Method Details
-
validateElement
protected T validateElement(com.mojang.brigadier.ImmutableStringReader p_335629_, ResourceLocation p_335530_) throws Exception - Specified by:
validateElement
in classResourceLookupRule<ComponentPredicateParser.Context<T,
C, P>, T> - Throws:
Exception
-
possibleResources
-