Skip to content

Commit d7f138b

Browse files
committed
feature(adventure): Update API to 5.0.1 and platform-mod 6.9.0
Also updates all javadoc links to the automatic format and pointing to the new hosting location
1 parent e7e687f commit d7f138b

15 files changed

Lines changed: 54 additions & 52 deletions

File tree

astro.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default defineConfig({
5959
},
6060

6161
{ icon: "github", label: "adventure:GitHub", href: "https://github.com/PaperMC/adventure" },
62-
{ icon: "seti:java", label: "adventure:Javadoc", href: "https://jd.advntr.dev" },
62+
{ icon: "seti:java", label: "adventure:Javadoc", href: "https://jd.papermc.io" },
6363

6464
{ icon: "github", label: "waterfall:GitHub", href: "https://github.com/PaperMC/Waterfall" },
6565
{
@@ -555,6 +555,7 @@ export default defineConfig({
555555
paper: "https://jd.papermc.io/paper",
556556
velocity: "https://jd.papermc.io/velocity",
557557
java: { url: "https://docs.oracle.com/en/java/javase/25/docs/api", module: "java.base" },
558+
adventure: "https://jd.papermc.io/adventure",
558559
},
559560
},
560561
],

src/content/docs/adventure/minimessage/dynamic-replacements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Create a custom tag which makes its contents clickable:
142142
```java
143143
TagResolver.resolver("click-by-version", (args, context) -> {
144144
final String version = args.popOr("version expected").value();
145-
return Tag.styling(ClickEvent.openUrl("https://jd.advntr.dev/api/ " + version + "/"));
145+
return Tag.styling(ClickEvent.openUrl("https://jd.papermc.io/adventure/" + version + "/"));
146146
});
147147
// creates a tag to get javadocs of adventure by the version: <click-by-version:'4.14.0'>
148148
```

src/content/docs/adventure/minimessage/format.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Tag
205205
* `<click:_action_:_value_>`
206206

207207
Arguments
208-
* `_action_`, the type of click event, one of [this list](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/event/ClickEvent.Action.html#enum.constant.summary)
208+
* `_action_`, the type of click event, one of [this list](https://jd.papermc.io/adventure/net.kyori.adventure.api/net/kyori/adventure/text/event/ClickEvent.Action.html#field-summary)
209209
* `_value_`, the argument for that particular event, refer to [the minecraft wiki](https://minecraft.wiki/w/Text_component_format)
210210

211211
Examples
@@ -232,7 +232,7 @@ Tag
232232
* `<hover:_action_:_value..._>`
233233

234234
Arguments
235-
* `_action_`, the type of hover event, one of this [list](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/event/HoverEvent.Action.html#field.summary)
235+
* `_action_`, the type of hover event, one of this [list](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.text.event.HoverEvent$Action#field-summary)
236236
* `_value..._`, arguments specific to each event action:
237237

238238
| Action | Value |

src/content/docs/adventure/platform/bukkit.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: The Bukkit Adventure implementation.
55
---
66

77
import Dependency from "/src/components/Dependency.astro";
8-
import { LATEST_ADVENTURE_SUPPORTED_MC, LATEST_ADVENTURE_PLATFORM_RELEASE } from "/src/utils/versions";
8+
import { LATEST_ADVENTURE_PLATFORM_RELEASE } from "/src/utils/versions";
99

1010
The Adventure platform implementation for Bukkit targets Paper, Spigot, and Bukkit for
1111
Minecraft 1.7.10 through {LATEST_ADVENTURE_SUPPORTED_MC}.

src/content/docs/paper/dev/api/command-api/arguments/adventure.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static LiteralCommandNode<CommandSourceStack> componentArgument() {
4747
<Video src={ComponentMp4} />
4848

4949
## Key argument
50-
The key argument allows a user to put in any artificial (namespaced) key, ensuring its validity. This returns a [`Key`](https://jd.advntr.dev/key/latest/net/kyori/adventure/key/Key.html),
50+
The key argument allows a user to put in any artificial (namespaced) key, ensuring its validity. This returns a [](jd:adventure:net.kyori.adventure.key:net.kyori.adventure.key.Key),
5151
which can be used at various other places in the Paper API.
5252

5353
### Example usage
@@ -74,7 +74,7 @@ public static LiteralCommandNode<CommandSourceStack> keyArgument() {
7474

7575
## Named color argument
7676
This argument provides the user with the ability to select between the 16 built-in "named" text colors. This argument returns a
77-
[`NamedTextColor`](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/format/NamedTextColor.html),
77+
[](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.text.format.NamedTextColor),
7878
which you can use for applying a color to components.
7979

8080
### Example usage
@@ -108,7 +108,7 @@ do not know how to use that format and thus its general usage is not advised.
108108

109109
:::
110110

111-
The style argument returns its value in the form of a [`Style`](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/format/Style.html) object.
111+
The style argument returns its value in the form of a [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.text.format.Style) object.
112112
This can be applied to any component using `Component#style(Style)`. Whilst the JSON input allows for the `text` field, its content is completely ignored.
113113

114114
### Example usage
@@ -143,7 +143,7 @@ A signed message argument returns a `SignedMessageResolver`. In order to call it
143143
* The argument name
144144
* The `CommandContext<CommandSourceStack>` object
145145

146-
The resolved value is a `CompletableFuture<SignedMessage>`, whose [`SignedMessage`](https://jd.advntr.dev/api/latest/net/kyori/adventure/chat/SignedMessage.html)
146+
The resolved value is a `CompletableFuture<SignedMessage>`, whose [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.chat.SignedMessage)
147147
value you can handle using `thenAccept(Consumer<T>)`. Inside of the consumer, you can send the signed message to players or work with it in other ways.
148148

149149
:::caution

src/content/docs/paper/dev/api/command-api/arguments/minecraft.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A quick overview of all possible arguments is defined here:
1414
|----------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
1515
| `blockPosition()` | [BlockPositionResolver](jd:paper:io.papermc.paper.command.brigadier.argument.resolvers.BlockPositionResolver) | [Block Position Argument](/paper/dev/command-api/arguments/location#block-position-argument) |
1616
| `blockState()` | [BlockState](jd:paper:org.bukkit.block.BlockState) | [Block State Argument](/paper/dev/command-api/arguments/paper#block-state-argument) |
17-
| `component()` | [Component (Kyori)](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/Component.html) | [Component Argument](/paper/dev/command-api/arguments/adventure#component-argument) |
17+
| `component()` | [Component](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.text.Component) | [Component Argument](/paper/dev/command-api/arguments/adventure#component-argument) |
1818
| `doubleRange()` | [DoubleRangeProvider](jd:paper:io.papermc.paper.command.brigadier.argument.range.DoubleRangeProvider) | [Double Range argument](/paper/dev/command-api/arguments/predicate#double-range-argument) |
1919
| `entity()` | [EntitySelectorArgumentResolver](jd:paper:io.papermc.paper.command.brigadier.argument.resolvers.selector.EntitySelectorArgumentResolver) | [Entity Argument](/paper/dev/command-api/arguments/entity-player#entity-argument) |
2020
| `entities()` | [EntitySelectorArgumentResolver](jd:paper:io.papermc.paper.command.brigadier.argument.resolvers.selector.EntitySelectorArgumentResolver) | [Entities Argument](/paper/dev/command-api/arguments/entity-player#entities-argument) |
@@ -25,16 +25,16 @@ A quick overview of all possible arguments is defined here:
2525
| `integerRange()` | [IntegerRangeProvider](jd:paper:io.papermc.paper.command.brigadier.argument.range.IntegerRangeProvider) | [Integer Range Argument](/paper/dev/command-api/arguments/predicate#integer-range-argument) |
2626
| `itemPredicate()` | [ItemStackPredicate](jd:paper:io.papermc.paper.command.brigadier.argument.predicate.ItemStackPredicate) | [Item Predicate Argument](/paper/dev/command-api/arguments/predicate#item-predicate-argument) |
2727
| `itemStack()` | [ItemStack](jd:paper:org.bukkit.inventory.ItemStack) | [ItemStack Argument](/paper/dev/command-api/arguments/paper#itemstack-argument) |
28-
| `key()` | [Key (Kyori)](https://jd.advntr.dev/key/latest/net/kyori/adventure/key/Key.html) | [Key Argument](/paper/dev/command-api/arguments/adventure#key-argument) |
29-
| `namedColor()` | [NamedTextColor (Kyori)](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/format/NamedTextColor.html) | [Named Color Argument](/paper/dev/command-api/arguments/adventure#named-color-argument) |
28+
| `key()` | [Key](jd:adventure:net.kyori.adventure.key:net.kyori.adventure.key.Key) | [Key Argument](/paper/dev/command-api/arguments/adventure#key-argument) |
29+
| `namedColor()` | [NamedTextColor](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.text.format.NamedTextColor) | [Named Color Argument](/paper/dev/command-api/arguments/adventure#named-color-argument) |
3030
| `namespacedKey()` | [NamespacedKey](jd:paper:org.bukkit.NamespacedKey) | [Bukkit NamespacedKey Argument](/paper/dev/command-api/arguments/paper#namespacedkey-argument) |
3131
| `objectiveCriteria()` | [Criteria](jd:paper:org.bukkit.scoreboard.Criteria) | [Objective Criteria Argument](/paper/dev/command-api/arguments/paper#objective-criteria-argument) |
3232
| `player()` | [PlayerSelectorArgumentResolver](jd:paper:io.papermc.paper.command.brigadier.argument.resolvers.selector.PlayerSelectorArgumentResolver) | [Player Argument](/paper/dev/command-api/arguments/entity-player#player-argument) |
3333
| `players()` | [PlayerSelectorArgumentResolver](jd:paper:io.papermc.paper.command.brigadier.argument.resolvers.selector.PlayerSelectorArgumentResolver) | [Players Argument](/paper/dev/command-api/arguments/entity-player#players-argument) |
3434
| `playerProfiles()` | [PlayerProfileListResolver](jd:paper:io.papermc.paper.command.brigadier.argument.resolvers.PlayerProfileListResolver) | [Player Profiles Argument](/paper/dev/command-api/arguments/entity-player#player-profiles-argument) |
3535
| `resource(RegistryKey)` | (Depends on RegistryKey) | [Resource Argument](/paper/dev/command-api/arguments/registry#resource-argument) |
3636
| `resourceKey(RegistryKey)` | (Depends on RegistryKey) | [Resource Key Argument](/paper/dev/command-api/arguments/registry#resource-key-argument) |
37-
| `style()` | [Style (Kyori)](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/format/Style.html) | [Style Argument](/paper/dev/command-api/arguments/adventure#adventure-style-argument) |
37+
| `style()` | [Style](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.text.format.Style) | [Style Argument](/paper/dev/command-api/arguments/adventure#adventure-style-argument) |
3838
| `signedMessage()` | [SignedMessageResolver](jd:paper:io.papermc.paper.command.brigadier.argument.SignedMessageResolver) | [Signed Message Argument](/paper/dev/command-api/arguments/adventure#signed-message-argument) |
3939
| `scoreboardDisplaySlot()` | [DisplaySlot](jd:paper:org.bukkit.scoreboard.DisplaySlot) | [Scoreboard Display Slot Argument](/paper/dev/command-api/arguments/enums#scoreboard-display-slot-argument) |
4040
| `time(int mintime)` | Integer | [Time Argument](/paper/dev/command-api/arguments/paper#time-argument) |

src/content/docs/paper/dev/api/component-api/audiences.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ All `CommandSender`s are single audiences. This includes players, the console, a
1313
`World` are all forwarding audiences. This means that they are made up of multiple audiences. For example, the server is
1414
made up of all online players and the console.
1515

16-
This means that all the [`Audience`](https://jd.advntr.dev/api/latest/net/kyori/adventure/audience/Audience.html)
16+
This means that all the [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.audience.Audience)
1717
methods are available on [`CommandSender`](jd:paper:org.bukkit.command.CommandSender),
1818
[`Server`](jd:paper:org.bukkit.Server), [`Team`](jd:paper:org.bukkit.scoreboard.Team)
1919
and [`World`](jd:paper:org.bukkit.World).
2020

2121
## `ForwardingAudience`
2222

23-
The [`ForwardingAudience`](https://jd.advntr.dev/api/latest/net/kyori/adventure/audience/ForwardingAudience.html)
24-
wraps a collection of [`Audience`](https://jd.advntr.dev/api/latest/net/kyori/adventure/audience/Audience.html)
23+
The [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.audience.ForwardingAudience)
24+
wraps a collection of [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.audience.Audience)
2525
instances and forwards messages to all of them. This is useful for sending messages to multiple audiences (players) at once.
2626

2727
```java
@@ -37,8 +37,8 @@ Audience audience = Audience.audience(Audience...);
3737
## What do `Audience`s do?
3838

3939
Audiences are used for interacting with players. They can be used to send messages, play sounds, show bossbars, and more.
40-
They are mostly used for sending other parts of the API to players. For example, you can send a [`Component`](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/Component.html)
41-
to a player using [`Audience#sendMessage(Component)`](https://jd.advntr.dev/api/latest/net/kyori/adventure/audience/Audience.html#sendMessage(net.kyori.adventure.text.Component)).
40+
They are mostly used for sending other parts of the API to players. For example, you can send a [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.text.Component)
41+
to a player using [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.audience.Audience#sendMessage(net.kyori.adventure.text.Component)).
4242

4343
## Pointers
4444

src/content/docs/paper/dev/api/component-api/i18n.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ translation layer to almost all text that ends up being displayed to clients.
1010

1111
:::note[Javadocs]
1212

13-
Adventure's Javadocs for all-things translations can be found [here](https://jd.advntr.dev/api/latest/net/kyori/adventure/translation/package-summary.html).
13+
Adventure's Javadocs for all-things translations can be found [here](https://jd.papermc.io/adventure/net.kyori.adventure.api/net/kyori/adventure/translation/package-summary.html).
1414

1515
:::
1616

1717
## GlobalTranslator
1818

19-
All translation is done through [`GlobalTranslator`](https://jd.advntr.dev/api/latest/net/kyori/adventure/translation/GlobalTranslator.html).
19+
All translation is done through [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.translation.GlobalTranslator).
2020
You can render translations yourself and add new sources for translations.
2121

22-
You can add sources to the `GlobalTranslator` by creating instances of [`TranslationStore`](https://jd.advntr.dev/api/latest/net/kyori/adventure/translation/TranslationStore.html)
23-
or implementing the [`Translator`](https://jd.advntr.dev/api/latest/net/kyori/adventure/translation/Translator.html) interface yourself.
22+
You can add sources to the `GlobalTranslator` by creating instances of [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.translation.TranslationStore)
23+
or implementing the [](jd:adventure:net.kyori.adventure.api:net.kyori.adventure.translation.Translator) interface yourself.
2424

2525
## Where translations work
2626

0 commit comments

Comments
 (0)