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