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
private static class ComponentPredicateParser.ElementLookupRule<T,C,P>
extends ResourceLookupRule<ComponentPredicateParser.Context<T,C,P>, T>
-
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
ConstructorsModifierConstructorDescriptionprivateElementLookupRule(NamedRule<com.mojang.brigadier.StringReader, Identifier> idParser, ComponentPredicateParser.Context<T, C, P> context) -
Method Summary
Modifier and TypeMethodDescriptionprotected TvalidateElement(com.mojang.brigadier.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
-
ElementLookupRule
private ElementLookupRule(NamedRule<com.mojang.brigadier.StringReader, Identifier> idParser, ComponentPredicateParser.Context<T, C, P> context)
-
-
Method Details
-
validateElement
protected T validateElement(com.mojang.brigadier.ImmutableStringReader reader, Identifier id) throws Exception - Specified by:
validateElementin classResourceLookupRule<ComponentPredicateParser.Context<T,C, P>, T> - Throws:
Exception
-
possibleResources
-