Skip to content

Commit

Permalink
fix: AggregateCommandParser -> AggregateParser
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Jan 22, 2024
1 parent 58500ac commit b8b184b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/core/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,13 @@ Aggregate parsers are a new concept as of Cloud v2, and they supersede the old c
An aggregate parser is a combination of multiple parsers that maps the intermediate results into an output
type using a mapper.

You may either implement the `AggregateCommandParser` interface, or using construct the parser by using a builder
that you create by calling `AggregateCommandParser.builder()`.
You may either implement the `AggregateParser` interface, or using construct the parser by using a builder
that you create by calling `AggregateParser.builder()`.

<!-- prettier-ignore -->
!!! example "Example Aggregate Parser"
```java
final AggregateCommandParser<CommandSender, Location> locationParser = AggregateCommandParser.<CommandSender>builder()
final AggregateParser<CommandSender, Location> locationParser = AggregateParser.<CommandSender>builder()
.withComponent("world", worldParser())
.withComponent("x", integerParser())
.withComponent("y", integerParser())
Expand Down

0 comments on commit b8b184b

Please sign in to comment.