You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/adventure/minimessage/format.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,7 @@ Tag
205
205
*`<click:_action_:_value_>`
206
206
207
207
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)
209
209
*`_value_`, the argument for that particular event, refer to [the minecraft wiki](https://minecraft.wiki/w/Text_component_format)
210
210
211
211
Examples
@@ -232,7 +232,7 @@ Tag
232
232
*`<hover:_action_:_value..._>`
233
233
234
234
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)
236
236
*`_value..._`, arguments specific to each event action:
Copy file name to clipboardExpand all lines: src/content/docs/paper/dev/api/command-api/arguments/adventure.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ public static LiteralCommandNode<CommandSourceStack> componentArgument() {
47
47
<Videosrc={ComponentMp4} />
48
48
49
49
## 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),
51
51
which can be used at various other places in the Paper API.
52
52
53
53
### Example usage
@@ -74,7 +74,7 @@ public static LiteralCommandNode<CommandSourceStack> keyArgument() {
74
74
75
75
## Named color argument
76
76
This argument provides the user with the ability to select between the 16 built-in "named" text colors. This argument returns a
which you can use for applying a color to components.
79
79
80
80
### Example usage
@@ -108,7 +108,7 @@ do not know how to use that format and thus its general usage is not advised.
108
108
109
109
:::
110
110
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.
112
112
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.
113
113
114
114
### Example usage
@@ -143,7 +143,7 @@ A signed message argument returns a `SignedMessageResolver`. In order to call it
143
143
* The argument name
144
144
* The `CommandContext<CommandSourceStack>` object
145
145
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)
147
147
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.
|`blockPosition()`|[BlockPositionResolver](jd:paper:io.papermc.paper.command.brigadier.argument.resolvers.BlockPositionResolver)|[Block Position Argument](/paper/dev/command-api/arguments/location#block-position-argument)|
16
16
|`blockState()`|[BlockState](jd:paper:org.bukkit.block.BlockState)|[Block State Argument](/paper/dev/command-api/arguments/paper#block-state-argument)|
|`doubleRange()`|[DoubleRangeProvider](jd:paper:io.papermc.paper.command.brigadier.argument.range.DoubleRangeProvider)|[Double Range argument](/paper/dev/command-api/arguments/predicate#double-range-argument)|
@@ -25,16 +25,16 @@ A quick overview of all possible arguments is defined here:
25
25
|`integerRange()`|[IntegerRangeProvider](jd:paper:io.papermc.paper.command.brigadier.argument.range.IntegerRangeProvider)|[Integer Range Argument](/paper/dev/command-api/arguments/predicate#integer-range-argument)|
|`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)|
|`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)|
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)).
Copy file name to clipboardExpand all lines: src/content/docs/paper/dev/api/component-api/i18n.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,17 @@ translation layer to almost all text that ends up being displayed to clients.
10
10
11
11
:::note[Javadocs]
12
12
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).
14
14
15
15
:::
16
16
17
17
## GlobalTranslator
18
18
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).
20
20
You can render translations yourself and add new sources for translations.
21
21
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.
0 commit comments