geforkt von Mirrors/Paper
Fix typos in isTickingWorlds API javadocs (#8382)
Dieser Commit ist enthalten in:
Ursprung
6d630052fd
Commit
abe53a7eb4
@ -5,7 +5,7 @@ Subject: [PATCH] Add method isTickingWorlds() to Bukkit.
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
|
||||
index 840aaf9e8fc828b5a7ea02252038c6524680f2e0..b5a7d6ab4e458843f2e163bf06b5668627012f91 100644
|
||||
index 840aaf9e8fc828b5a7ea02252038c6524680f2e0..232c08c9a588d957d90f198ce479e57615c6e650 100644
|
||||
--- a/src/main/java/org/bukkit/Bukkit.java
|
||||
+++ b/src/main/java/org/bukkit/Bukkit.java
|
||||
@@ -753,12 +753,26 @@ public final class Bukkit {
|
||||
@ -14,7 +14,7 @@ index 840aaf9e8fc828b5a7ea02252038c6524680f2e0..b5a7d6ab4e458843f2e163bf06b56686
|
||||
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Gets whether the worlds are being ticked right not or not.
|
||||
+ * Gets whether the worlds are being ticked right now.
|
||||
+ *
|
||||
+ * @return true if the worlds are being ticked, false otherwise.
|
||||
+ */
|
||||
@ -31,7 +31,7 @@ index 840aaf9e8fc828b5a7ea02252038c6524680f2e0..b5a7d6ab4e458843f2e163bf06b56686
|
||||
* getWorld(creator.name()).
|
||||
+ * <p>
|
||||
+ * Do note that un/loading worlds mid-tick may have potential side effects, we strongly recommend
|
||||
+ * ensuring that you're not loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
+ * ensuring that you're not un/loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
*
|
||||
* @param creator the options to use when creating the world
|
||||
* @return newly created or loaded world
|
||||
@ -41,7 +41,7 @@ index 840aaf9e8fc828b5a7ea02252038c6524680f2e0..b5a7d6ab4e458843f2e163bf06b56686
|
||||
* Unloads a world with the given name.
|
||||
+ * <p>
|
||||
+ * Do note that un/loading worlds mid-tick may have potential side effects, we strongly recommend
|
||||
+ * ensuring that you're not loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
+ * ensuring that you're not un/loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
*
|
||||
* @param name Name of the world to unload
|
||||
* @param save whether to save the chunks before unloading
|
||||
@ -51,12 +51,12 @@ index 840aaf9e8fc828b5a7ea02252038c6524680f2e0..b5a7d6ab4e458843f2e163bf06b56686
|
||||
* Unloads the given world.
|
||||
+ * <p>
|
||||
+ * Do note that un/loading worlds mid-tick may have potential side effects, we strongly recommend
|
||||
+ * ensuring that you're not loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
+ * ensuring that you're not un/loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
*
|
||||
* @param world the world to unload
|
||||
* @param save whether to save the chunks before unloading
|
||||
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
|
||||
index da5cab4246bd253fcc4e4d9574bdae1867ebb5ab..1982fc2d7f1cb80d3e324ee283211b251a976c6e 100644
|
||||
index da5cab4246bd253fcc4e4d9574bdae1867ebb5ab..e43fef0152468944d8a33036344a43e95fe58476 100644
|
||||
--- a/src/main/java/org/bukkit/Server.java
|
||||
+++ b/src/main/java/org/bukkit/Server.java
|
||||
@@ -622,34 +622,55 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
||||
@ -65,7 +65,7 @@ index da5cab4246bd253fcc4e4d9574bdae1867ebb5ab..1982fc2d7f1cb80d3e324ee283211b25
|
||||
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Gets whether the worlds are being ticked right not or not.
|
||||
+ * Gets whether the worlds are being ticked right now.
|
||||
+ *
|
||||
+ * @return true if the worlds are being ticked, false otherwise.
|
||||
+ */
|
||||
@ -80,7 +80,7 @@ index da5cab4246bd253fcc4e4d9574bdae1867ebb5ab..1982fc2d7f1cb80d3e324ee283211b25
|
||||
* getWorld(creator.name()).
|
||||
+ * <p>
|
||||
+ * Do note that un/loading worlds mid-tick may have potential side effects, we strongly recommend
|
||||
+ * ensuring that you're not loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
+ * ensuring that you're not un/loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
*
|
||||
* @param creator the options to use when creating the world
|
||||
* @return newly created or loaded world
|
||||
@ -93,7 +93,7 @@ index da5cab4246bd253fcc4e4d9574bdae1867ebb5ab..1982fc2d7f1cb80d3e324ee283211b25
|
||||
* Unloads a world with the given name.
|
||||
+ * <p>
|
||||
+ * Do note that un/loading worlds mid-tick may have potential side effects, we strongly recommend
|
||||
+ * ensuring that you're not loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
+ * ensuring that you're not un/loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
*
|
||||
* @param name Name of the world to unload
|
||||
* @param save whether to save the chunks before unloading
|
||||
@ -106,7 +106,7 @@ index da5cab4246bd253fcc4e4d9574bdae1867ebb5ab..1982fc2d7f1cb80d3e324ee283211b25
|
||||
* Unloads the given world.
|
||||
+ * <p>
|
||||
+ * Do note that un/loading worlds mid-tick may have potential side effects, we strongly recommend
|
||||
+ * ensuring that you're not loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
+ * ensuring that you're not un/loading worlds midtick by checking {@link Bukkit#isTickingWorlds()}
|
||||
*
|
||||
* @param world the world to unload
|
||||
* @param save whether to save the chunks before unloading
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren