Package org.cyclops.cyclopscore.nbt.path
Interface INbtPathExpression
- All Known Implementing Classes:
NbtPathExpressionList
,NbtPathExpressionParseHandlerAllChildren.Expression
,NbtPathExpressionParseHandlerBooleanRelationalAdapter.Expression
,NbtPathExpressionParseHandlerChild.Expression
,NbtPathExpressionParseHandlerCurrent.Expression
,NbtPathExpressionParseHandlerFilterExpression.Expression
,NbtPathExpressionParseHandlerLength.Expression
,NbtPathExpressionParseHandlerListElement.Expression
,NbtPathExpressionParseHandlerListSlice.Expression
,NbtPathExpressionParseHandlerParent.Expression
,NbtPathExpressionParseHandlerRoot.Expression
,NbtPathExpressionParseHandlerStringEqual.Expression
,NbtPathExpressionParseHandlerUnion.Expression
public interface INbtPathExpression
A parsed NBT path expression.
-
Method Summary
Modifier and TypeMethodDescriptiondefault INbtPathNavigation
Create a navigation for this expression.default INbtPathNavigation
asNavigation
(INbtPathNavigation child) Create a navigation for this expression with the given navigation as child.default NbtPathExpressionMatches
Find all matches for the given stream of NBT tags.default NbtPathExpressionMatches
match
(net.minecraft.nbt.Tag nbt) Find all matches for the given NBT tag.matchContexts
(Stream<NbtPathExpressionExecutionContext> executionContexts) Find all matches for the given stream of NBT tags.default boolean
Test if any of the given NBT tags in the given stream match with the expression.default boolean
test
(net.minecraft.nbt.Tag nbt) Test if the given NBT tag matches with the expression.
-
Method Details
-
match
Find all matches for the given stream of NBT tags.- Parameters:
nbts
- A stream of NBT tags.- Returns:
- The matches.
-
match
Find all matches for the given NBT tag.- Parameters:
nbt
- An NBT tag.- Returns:
- The matches.
-
test
Test if any of the given NBT tags in the given stream match with the expression.- Parameters:
nbts
- A stream of NBT tags.- Returns:
- True if there is at least one match.
-
test
default boolean test(net.minecraft.nbt.Tag nbt) Test if the given NBT tag matches with the expression.- Parameters:
nbt
- An NBT tag.- Returns:
- True if there is at least one match.
-
matchContexts
Find all matches for the given stream of NBT tags.- Parameters:
executionContexts
- A stream of NBT execution contexts.- Returns:
- The matches.
-