Skip to content

Commit d762d63

Browse files
committed
chore: update wiki.vg links
The merge still hasn't been finalized and most pages haven't been integrated into the main space, but I'd rather update it again than have dead links. (#496)
1 parent d799b54 commit d762d63

File tree

3 files changed

+42
-42
lines changed

3 files changed

+42
-42
lines changed

docs/paper/dev/api/command-api/arguments.mdx

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -48,54 +48,54 @@ sender will get a message containing the key of the enchantment they selected.
4848
- Direct conversion to usable type
4949
- Client-side error handling
5050
- Custom types
51-
- Non alphanumerical sorting
51+
- Non-alphanumerical sorting
5252

5353
## Argument types
5454

5555
By default, you can use [the registry API](../registries) to get simple argument types like
56-
blocks, items, potions and many more. In the example above, we used the Enchantment
56+
blocks, items, potions and many more. In the example above, we used the Enchantment
5757
Argument type, but there are many others:
5858

5959
### Predefined types (Registry)
6060

61-
| Registry key name | Return datatype class | Description |
62-
|---------------------|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
63-
| GAME_EVENT | GameEvent | [Game events](https://minecraft.wiki/w/Sculk_Sensor#Vibration_frequencies) |
64-
| STRUCTURE_TYPE | StructureType | [Structure types](https://minecraft.wiki/w/Structure#Overworld) |
65-
| MOB_EFFECT | PotionEffectType | [Potion effect](https://minecraft.wiki/w/Effect#List) |
66-
| BLOCK | BlockType | [Block type](https://minecraft.wiki/w/Block#List_of_blocks) |
67-
| ITEM | ItemType | [Item type](https://minecraft.wiki/w/Item#List_of_items) |
68-
| CAT_VARIANT | Cat.Type | [Cat variants](https://minecraft.wiki/w/Cat#Appearance) |
69-
| FROG_VARIANT | Frog.Variant | [Frog variants](https://minecraft.wiki/w/Frog) |
70-
| VILLAGER_PROFESSION | Villager.Profession | [Villager professions](https://minecraft.wiki/w/Villager#Professions) |
71-
| VILLAGER_TYPE | Villager.Type | [Villager biome specific type](https://minecraft.wiki/w/Villager#Professions) |
72-
| MAP_DECORATION_TYPE | MapCursor.Type | [Types of sprites displayed on a map](https://minecraft.wiki/w/Map#Map_icons) |
73-
| MENU | MenuType | [Menu type](https://wiki.vg/Inventory) |
74-
| ATTRIBUTE | Attribute | [Entity attribute](https://minecraft.wiki/w/Attribute) |
75-
| FLUID | Fluid | [Fluid types](https://minecraft.wiki/w/Fluid) |
76-
| SOUND_EVENT | Sound | [Events that trigger sound effects](https://minecraft.wiki/w/Sounds.json#Sound_events) |
77-
| BIOME | Biome | [Biome type](https://minecraft.wiki/w/Biome#Biome_types) |
78-
| STRUCTURE | Structure | [Structures](https://minecraft.wiki/w/Structure#Overworld) |
79-
| TRIM_MATERIAL | TrimMaterial | [Materials used to trim armor](https://minecraft.wiki/w/Smithing#Material) |
80-
| TRIM_PATTERN | TrimPattern | [Trim patterns](https://minecraft.wiki/w/Smithing#Trimming) |
81-
| DAMAGE_TYPE | DamageType | [All types of damage dealt to an entity](https://minecraft.wiki/w/Damage_type) |
82-
| WOLF_VARIANT | Wolf.Variant | [Wolf variants](https://minecraft.wiki/w/Wolf#Variants) |
83-
| ENCHANTMENT | Enchantment | [Enchantment type](https://minecraft.wiki/w/Enchanting#Summary_of_enchantments) |
84-
| JUKEBOX_SONG | JukeboxSong | Music disc songs |
85-
| BANNER_PATTERN | PatternType | [Banner patterns](https://minecraft.wiki/w/Banner_Pattern#Variants) |
86-
| PAINTING_VARIANT | Art | [Painting variants](https://minecraft.wiki/w/Painting#Canvases) |
87-
| INSTRUMENT | MusicInstrument | [Goat horns](https://minecraft.wiki/w/Goat_Horn#Playing) |
88-
| ENTITY_TYPE | EntityType | [Every entity type](https://minecraft.wiki/w/Entity#Types_of_entities) |
89-
| PARTICLE_TYPE | Particle | [Every particle type](https://minecraft.wiki/w/Particles_(Java_Edition)#Types_of_particles) |
90-
| POTION | PotionType | [Every potion type](https://minecraft.wiki/w/Potion#Effect_potions) |
91-
| MEMORY_MODULE_TYPE | MemoryKey | Keys for saving per-entity data |
92-
93-
Paper specifies many more argument types. For more information on them, see <Javadoc name={"io.papermc.paper.command.brigadier.argument.ArgumentTypes"}>ArgumentTypes</Javadoc>
61+
| Registry key name | Return datatype class | Description |
62+
|---------------------|-----------------------|---------------------------------------------------------------------------------------------|
63+
| GAME_EVENT | GameEvent | [Game events](https://minecraft.wiki/w/Sculk_Sensor#Vibration_frequencies) |
64+
| STRUCTURE_TYPE | StructureType | [Structure types](https://minecraft.wiki/w/Structure#Overworld) |
65+
| MOB_EFFECT | PotionEffectType | [Potion effect](https://minecraft.wiki/w/Effect#List) |
66+
| BLOCK | BlockType | [Block type](https://minecraft.wiki/w/Block#List_of_blocks) |
67+
| ITEM | ItemType | [Item type](https://minecraft.wiki/w/Item#List_of_items) |
68+
| CAT_VARIANT | Cat.Type | [Cat variants](https://minecraft.wiki/w/Cat#Appearance) |
69+
| FROG_VARIANT | Frog.Variant | [Frog variants](https://minecraft.wiki/w/Frog) |
70+
| VILLAGER_PROFESSION | Villager.Profession | [Villager professions](https://minecraft.wiki/w/Villager#Professions) |
71+
| VILLAGER_TYPE | Villager.Type | [Villager biome specific type](https://minecraft.wiki/w/Villager#Professions) |
72+
| MAP_DECORATION_TYPE | MapCursor.Type | [Types of sprites displayed on a map](https://minecraft.wiki/w/Map#Map_icons) |
73+
| MENU | MenuType | [Menu type](https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Inventory) |
74+
| ATTRIBUTE | Attribute | [Entity attribute](https://minecraft.wiki/w/Attribute) |
75+
| FLUID | Fluid | [Fluid types](https://minecraft.wiki/w/Fluid) |
76+
| SOUND_EVENT | Sound | [Events that trigger sound effects](https://minecraft.wiki/w/Sounds.json#Sound_events) |
77+
| BIOME | Biome | [Biome type](https://minecraft.wiki/w/Biome#Biome_types) |
78+
| STRUCTURE | Structure | [Structures](https://minecraft.wiki/w/Structure#Overworld) |
79+
| TRIM_MATERIAL | TrimMaterial | [Materials used to trim armor](https://minecraft.wiki/w/Smithing#Material) |
80+
| TRIM_PATTERN | TrimPattern | [Trim patterns](https://minecraft.wiki/w/Smithing#Trimming) |
81+
| DAMAGE_TYPE | DamageType | [All types of damage dealt to an entity](https://minecraft.wiki/w/Damage_type) |
82+
| WOLF_VARIANT | Wolf.Variant | [Wolf variants](https://minecraft.wiki/w/Wolf#Variants) |
83+
| ENCHANTMENT | Enchantment | [Enchantment type](https://minecraft.wiki/w/Enchanting#Summary_of_enchantments) |
84+
| JUKEBOX_SONG | JukeboxSong | Music disc songs |
85+
| BANNER_PATTERN | PatternType | [Banner patterns](https://minecraft.wiki/w/Banner_Pattern#Variants) |
86+
| PAINTING_VARIANT | Art | [Painting variants](https://minecraft.wiki/w/Painting#Canvases) |
87+
| INSTRUMENT | MusicInstrument | [Goat horns](https://minecraft.wiki/w/Goat_Horn#Playing) |
88+
| ENTITY_TYPE | EntityType | [Every entity type](https://minecraft.wiki/w/Entity#Types_of_entities) |
89+
| PARTICLE_TYPE | Particle | [Every particle type](https://minecraft.wiki/w/Particles_(Java_Edition)#Types_of_particles) |
90+
| POTION | PotionType | [Every potion type](https://minecraft.wiki/w/Potion#Effect_potions) |
91+
| MEMORY_MODULE_TYPE | MemoryKey | Keys for saving per-entity data |
92+
93+
Paper specifies many more argument types. For more information on them, see <Javadoc name={"io.papermc.paper.command.brigadier.argument.ArgumentTypes"}>ArgumentTypes</Javadoc>.
9494

9595
### Custom types
9696

97-
Custom arguments can be created by implementing the <Javadoc name={"io.papermc.paper.command.brigadier.argument.CustomArgumentType"}>CustomArgumentType</Javadoc>
98-
interface.
97+
Custom arguments can be created by implementing the <Javadoc name={"io.papermc.paper.command.brigadier.argument.CustomArgumentType"}>CustomArgumentType</Javadoc>
98+
interface.
9999

100100
Now, let's say that we want to implement a command which lets you order ice cream. For that,
101101
we add an enum that specifies all available values for our custom type.
@@ -150,7 +150,7 @@ interface. This interface takes two type arguments: our custom enum, T, and a na
150150

151151
- `listSuggestions()` returns `CompletableFuture<Suggestions>` so that the client
152152
can suggest all available options. We can even add tooltips to the suggestions to explain them in greater
153-
detail.
153+
detail.
154154

155155
We then need to register the command:
156156

@@ -174,9 +174,9 @@ public void onEnable() {
174174
}
175175
```
176176

177-
Now that we have registered the command, we can execute it ingame:
177+
Now that we have registered the command, we can execute it in-game:
178178

179179
![command with suggestions](./assets/icecreamargument.gif)
180-
Look, we can even see our tooltip and if we execute the command, we get the message we specified
180+
Look, we can even see our tooltip and if we execute the command, we get the message we specified:
181181

182182
![executed command](./assets/command-executed.gif)

docs/paper/dev/api/plugin-messaging.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public final class PluginMessagingSample extends JavaPlugin implements Listener
6767
:::tip
6868

6969
These channels rely on the Minecraft protocol, and are sent as a special type of packet called a
70-
[Plugin Message](https://wiki.vg/Plugin_channels#Plugin_Messages). They piggyback on player connections, so if there is no
70+
[Plugin Message](https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Plugin_channels). They piggyback on player connections, so if there is no
7171
player connected to the server, it will not be able to send or receive plugin messages.
7272

7373
:::

docs/versioned/paper/content/1.20/dev/api/plugin-messaging.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public final class PluginMessagingSample extends JavaPlugin implements Listener
6767
:::tip
6868

6969
These channels rely on the Minecraft protocol, and are sent as a special type of packet called a
70-
[Plugin Message](https://wiki.vg/Plugin_channels#Plugin_Messages). They piggyback on player connections, so if there is no
70+
[Plugin Message](https://minecraft.wiki/w/Minecraft_Wiki:Projects/wiki.vg_merge/Plugin_channels). They piggyback on player connections, so if there is no
7171
player connected to the server, it will not be able to send or receive plugin messages.
7272

7373
:::

0 commit comments

Comments
 (0)