From bcd8d2aaf28d489ea5a2573e74ef40f614bd7e13 Mon Sep 17 00:00:00 2001 From: Doc Date: Mon, 25 Sep 2023 18:53:42 +1000 Subject: [PATCH] #912: Update Minecraft Wiki URLs --- README.md | 2 +- src/main/java/org/bukkit/GameRule.java | 2 +- src/main/java/org/bukkit/HeightMap.java | 3 +-- src/main/java/org/bukkit/Material.java | 2 +- .../java/org/bukkit/MinecraftExperimental.java | 2 +- src/main/java/org/bukkit/UnsafeValues.java | 3 +-- src/main/java/org/bukkit/WorldCreator.java | 2 +- src/main/java/org/bukkit/block/Structure.java | 4 ++-- .../org/bukkit/block/structure/UsageMode.java | 2 +- .../java/org/bukkit/entity/SpawnCategory.java | 2 +- .../java/org/bukkit/entity/TropicalFish.java | 2 +- src/main/java/org/bukkit/loot/LootTable.java | 4 ++-- src/main/java/org/bukkit/loot/LootTables.java | 4 ++-- src/main/java/org/bukkit/packs/DataPack.java | 2 ++ .../bukkit/plugin/PluginDescriptionFile.java | 18 +++++++++--------- 15 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index c97e2e5d..4e652394 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Code Requirements * Do not attempt to fix multiple problems with a single patch or pull request. * Avoid moving or renaming classes. * All non-private methods and constructors must have specified nullability through [annotations](https://github.com/JetBrains/java-annotations) -* All classes/methods/fields related to a [Minecraft Experimental Feature](https://minecraft.fandom.com/wiki/Experimental_Gameplay) must be marked with [`@MinecraftExperimental`](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/MinecraftExperimental.html) +* All classes/methods/fields related to a [Minecraft Experimental Feature](https://minecraft.wiki/w/Experimental_Gameplay) must be marked with [`@MinecraftExperimental`](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/MinecraftExperimental.html) * If necessary, you may consider the use of one of the following [ApiStatus Annotations](https://javadoc.io/doc/org.jetbrains/annotations-java5/23.0.0/org/jetbrains/annotations/ApiStatus.html): * [`@ApiStatus.Experimental`](https://javadoc.io/doc/org.jetbrains/annotations-java5/23.0.0/org/jetbrains/annotations/ApiStatus.Experimental.html) for API that is subject to change * [`@ApiStatus.Internal`](https://javadoc.io/doc/org.jetbrains/annotations-java5/23.0.0/org/jetbrains/annotations/ApiStatus.Internal.html) for API that is intended only for internal use in the Bukkit project and will not adhere to Bukkit's API contract diff --git a/src/main/java/org/bukkit/GameRule.java b/src/main/java/org/bukkit/GameRule.java index 9443baf6..3ac563da 100644 --- a/src/main/java/org/bukkit/GameRule.java +++ b/src/main/java/org/bukkit/GameRule.java @@ -10,7 +10,7 @@ import org.jetbrains.annotations.Nullable; * GameRules dictate certain behavior within Minecraft itself *
* For more information please visit the - * Minecraft + * Minecraft * Wiki * * @param type of rule (Boolean or Integer) diff --git a/src/main/java/org/bukkit/HeightMap.java b/src/main/java/org/bukkit/HeightMap.java index 27e7b6e7..db6fcd63 100644 --- a/src/main/java/org/bukkit/HeightMap.java +++ b/src/main/java/org/bukkit/HeightMap.java @@ -3,8 +3,7 @@ package org.bukkit; /** * Further information regarding heightmaps. * - * @see Gamepedia Chunk - * Format + * @see Minecraft Wiki */ public enum HeightMap { diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java index 0b6c1065..7ed67f35 100644 --- a/src/main/java/org/bukkit/Material.java +++ b/src/main/java/org/bukkit/Material.java @@ -7919,7 +7919,7 @@ public enum Material implements Keyed, Translatable { *
  • Only occluding blocks can be "powered" ({@link Block#isBlockPowered()}). * * This list may be inconclusive. For a full list of the side effects of an occluding - * block, see the Minecraft Wiki. + * block, see the Minecraft Wiki. * * @return True if this material is a block and occludes light */ diff --git a/src/main/java/org/bukkit/MinecraftExperimental.java b/src/main/java/org/bukkit/MinecraftExperimental.java index 4e7e6921..2365a8c6 100644 --- a/src/main/java/org/bukkit/MinecraftExperimental.java +++ b/src/main/java/org/bukkit/MinecraftExperimental.java @@ -9,7 +9,7 @@ import org.jetbrains.annotations.ApiStatus; /** * Indicates that the annotated element (class, method, field, etc.) is part of a - * minecraft experimental feature + * minecraft experimental feature * and is subject to changes by Mojang. *

    * Note: Elements marked with this annotation require the use of a datapack or otherwise diff --git a/src/main/java/org/bukkit/UnsafeValues.java b/src/main/java/org/bukkit/UnsafeValues.java index 650adcec..68194147 100644 --- a/src/main/java/org/bukkit/UnsafeValues.java +++ b/src/main/java/org/bukkit/UnsafeValues.java @@ -51,8 +51,7 @@ public interface UnsafeValues { * The advancement format is governed by Minecraft and has no specified * layout. *
    - * It is currently a JSON object, as described by the Minecraft Wiki: - * http://minecraft.gamepedia.com/Advancements + * It is currently a JSON object, as described by the Minecraft wiki. *
    * Loaded advancements will be stored and persisted across server restarts * and reloads. diff --git a/src/main/java/org/bukkit/WorldCreator.java b/src/main/java/org/bukkit/WorldCreator.java index cbe6b3a1..f9fa287d 100644 --- a/src/main/java/org/bukkit/WorldCreator.java +++ b/src/main/java/org/bukkit/WorldCreator.java @@ -321,7 +321,7 @@ public class WorldCreator { * @param generatorSettings The settings that should be used by the * generator * @return This object, for chaining - * @see Custom + * @see Custom * dimension (scroll to "When the generator ID type is * minecraft:flat)" */ diff --git a/src/main/java/org/bukkit/block/Structure.java b/src/main/java/org/bukkit/block/Structure.java index bce0947d..ab245d11 100644 --- a/src/main/java/org/bukkit/block/Structure.java +++ b/src/main/java/org/bukkit/block/Structure.java @@ -223,7 +223,7 @@ public interface Structure extends TileState { /** * Only applicable while in {@link UsageMode#DATA}. Metadata are specific * functions that can be applied to the structure location. Consult the - * Minecraft + * Minecraft * wiki for more information. * * @param metadata the function to perform on the selected location @@ -233,7 +233,7 @@ public interface Structure extends TileState { /** * Get the metadata function this structure block will perform when * activated. Consult the - * Minecraft + * Minecraft * Wiki for more information. * * @return the function that will be performed when this block is activated diff --git a/src/main/java/org/bukkit/block/structure/UsageMode.java b/src/main/java/org/bukkit/block/structure/UsageMode.java index cbea3f38..8c6528ca 100644 --- a/src/main/java/org/bukkit/block/structure/UsageMode.java +++ b/src/main/java/org/bukkit/block/structure/UsageMode.java @@ -23,7 +23,7 @@ public enum UsageMode { * Used to run specific custom functions, which can only be used for certain * Structures. The structure block is removed after this function completes. * The data tags (functions) can be found on the - * wiki. + * wiki. */ DATA; } diff --git a/src/main/java/org/bukkit/entity/SpawnCategory.java b/src/main/java/org/bukkit/entity/SpawnCategory.java index a2772ada..b1a0de51 100644 --- a/src/main/java/org/bukkit/entity/SpawnCategory.java +++ b/src/main/java/org/bukkit/entity/SpawnCategory.java @@ -3,7 +3,7 @@ package org.bukkit.entity; /** * Represents groups of entities with shared spawn behaviors and mob caps. * - * @see Minecraft Wiki + * @see Minecraft Wiki */ public enum SpawnCategory { diff --git a/src/main/java/org/bukkit/entity/TropicalFish.java b/src/main/java/org/bukkit/entity/TropicalFish.java index bc5055f2..ab31289b 100644 --- a/src/main/java/org/bukkit/entity/TropicalFish.java +++ b/src/main/java/org/bukkit/entity/TropicalFish.java @@ -55,7 +55,7 @@ public interface TropicalFish extends Fish { /** * Enumeration of all different fish patterns. Refer to the - * Minecraft Wiki + * Minecraft Wiki * for pictures. */ public static enum Pattern { diff --git a/src/main/java/org/bukkit/loot/LootTable.java b/src/main/java/org/bukkit/loot/LootTable.java index b7529fc7..ee5bd79f 100644 --- a/src/main/java/org/bukkit/loot/LootTable.java +++ b/src/main/java/org/bukkit/loot/LootTable.java @@ -12,8 +12,8 @@ import org.jetbrains.annotations.Nullable; * LootTables are technical files that represent what items should be in * naturally generated containers, what items should be dropped when killing a * mob, or what items can be fished. - * - * See the + *
    + * See the
    * Minecraft Wiki for more information. */ public interface LootTable extends Keyed { diff --git a/src/main/java/org/bukkit/loot/LootTables.java b/src/main/java/org/bukkit/loot/LootTables.java index 95bbda00..4e8479dc 100644 --- a/src/main/java/org/bukkit/loot/LootTables.java +++ b/src/main/java/org/bukkit/loot/LootTables.java @@ -8,9 +8,9 @@ import org.jetbrains.annotations.NotNull; /** * This enum holds a list of all known {@link LootTable}s offered by Mojang. * This list is not guaranteed to be accurate in future versions. - * + *
    * See the - * + * * Minecraft Wiki for more information on loot tables. */ public enum LootTables implements Keyed { diff --git a/src/main/java/org/bukkit/packs/DataPack.java b/src/main/java/org/bukkit/packs/DataPack.java index e424680e..a0631038 100644 --- a/src/main/java/org/bukkit/packs/DataPack.java +++ b/src/main/java/org/bukkit/packs/DataPack.java @@ -8,6 +8,8 @@ import org.jetbrains.annotations.NotNull; /** * Represents a data pack. + * + * @see Minecraft wiki */ @ApiStatus.Experimental public interface DataPack extends Keyed { diff --git a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java index 0eae1c02..539df566 100644 --- a/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java +++ b/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java @@ -335,7 +335,7 @@ public final class PluginDescriptionFile { *

  • An entry of this list can be referenced in {@link #getDepend()}, * {@link #getSoftDepend()}, and {@link #getLoadBefore()}. *
  • provides must be in YAML list + * href="https://en.wikipedia.org/wiki/YAML#Lists">YAML list * format. * *

    @@ -454,7 +454,7 @@ public final class PluginDescriptionFile { *

  • A SpigotMC forum handle or email address is recommended. *
  • Is displayed when a user types /version PluginName *
  • authors must be in YAML list + * href="https://en.wikipedia.org/wiki/YAML#Lists">YAML list * format. * *

    @@ -491,7 +491,7 @@ public final class PluginDescriptionFile { *

  • A SpigotMC forum handle or email address is recommended. *
  • Is displayed when a user types /version PluginName *
  • contributors must be in YAML list + * href="https://en.wikipedia.org/wiki/YAML#Lists">YAML list * format. * *

    @@ -538,7 +538,7 @@ public final class PluginDescriptionFile { * href=https://en.wikipedia.org/wiki/Circular_dependency>network, * all plugins in that network will fail. *

  • depend must be in YAML list + * href="https://en.wikipedia.org/wiki/YAML#Lists">YAML list * format. * *

    @@ -570,7 +570,7 @@ public final class PluginDescriptionFile { * or soft-dependending each other), it will arbitrarily choose a * plugin that can be resolved when ignoring soft-dependencies. *

  • softdepend must be in YAML list + * href="https://en.wikipedia.org/wiki/YAML#Lists">YAML list * format. * *

    @@ -597,7 +597,7 @@ public final class PluginDescriptionFile { * specified plugin's {@link #getSoftDepend()} include {@link * #getName() this plugin}. *

  • loadbefore must be in YAML list + * href="https://en.wikipedia.org/wiki/YAML#Lists">YAML list * format. * *

    @@ -661,7 +661,7 @@ public final class PluginDescriptionFile { * aliases * {@link PluginCommand#setAliases(List)} * String or List of + * href="https://en.wikipedia.org/wiki/YAML#Lists">List of * strings * Alternative command names, with special usefulness for commands * that are already registered. Aliases are not effective when @@ -809,7 +809,7 @@ public final class PluginDescriptionFile { *

    * Child permissions may be defined in a number of ways:

      *
    • Children may be defined as a list of + * href="https://en.wikipedia.org/wiki/YAML#Lists">list of * names. Using a list will treat all children associated * positively to their parent. *
    • Children may be defined as a map. Each permission name maps @@ -917,7 +917,7 @@ public final class PluginDescriptionFile { * by the API, effectively discluding any derived type from any * plugin's classpath. *
    • awareness must be in YAML list + * href="https://en.wikipedia.org/wiki/YAML#Lists">YAML list * format. *
    *