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<com.mojang.brigadier.StringReader,
,P> SuggestionSupplier<com.mojang.brigadier.StringReader>
- Enclosing class:
ComponentPredicateParser
static class ComponentPredicateParser.PredicateLookupRule<T,C,P>
extends ResourceLookupRule<ComponentPredicateParser.Context<T,C,P>,P>
-
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
ConstructorDescriptionPredicateLookupRule
(Atom<ResourceLocation> p_333095_, ComponentPredicateParser.Context<T, C, P> p_335118_) -
Method Summary
Modifier and TypeMethodDescriptionprotected P
validateElement
(com.mojang.brigadier.ImmutableStringReader p_334282_, ResourceLocation p_330262_) 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
-
PredicateLookupRule
PredicateLookupRule(Atom<ResourceLocation> p_333095_, ComponentPredicateParser.Context<T, C, P> p_335118_)
-
-
Method Details
-
validateElement
protected P validateElement(com.mojang.brigadier.ImmutableStringReader p_334282_, ResourceLocation p_330262_) throws Exception - Specified by:
validateElement
in classResourceLookupRule<ComponentPredicateParser.Context<T,
C, P>, P> - Throws:
Exception
-
possibleResources
-