2019-07-11 18:59:21 +02:00
|
|
|
From bb553c5f1fecc0bde9c2adf69e47645a07389865 Mon Sep 17 00:00:00 2001
|
2017-06-11 00:11:10 +02:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Sat, 10 Jun 2017 16:59:40 -0500
|
|
|
|
Subject: [PATCH] Fix upstream javadoc warnings and errors
|
|
|
|
|
|
|
|
Upstream still refuses to use Java 8 with the API so they are likely unaware these are even issues.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
2019-07-11 18:59:21 +02:00
|
|
|
index 58414e01..3cd4bff1 100644
|
2017-06-11 00:11:10 +02:00
|
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
|
|
+++ b/src/main/java/org/bukkit/World.java
|
2019-07-11 18:59:21 +02:00
|
|
|
@@ -1746,6 +1746,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2017-06-11 00:11:10 +02:00
|
|
|
* @param count the number of particles
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-07-11 18:59:21 +02:00
|
|
|
@@ -1762,6 +1763,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2017-06-11 00:11:10 +02:00
|
|
|
* @param count the number of particles
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-07-11 18:59:21 +02:00
|
|
|
@@ -1812,6 +1814,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2017-06-11 00:11:10 +02:00
|
|
|
* @param offsetZ the maximum random offset on the Z axis
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-07-11 18:59:21 +02:00
|
|
|
@@ -1832,6 +1835,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2017-06-11 00:11:10 +02:00
|
|
|
* @param offsetZ the maximum random offset on the Z axis
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-07-11 18:59:21 +02:00
|
|
|
@@ -1888,6 +1892,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2017-06-11 00:11:10 +02:00
|
|
|
* particle used (normally speed)
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-07-11 18:59:21 +02:00
|
|
|
@@ -1910,6 +1915,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2017-06-11 00:11:10 +02:00
|
|
|
* particle used (normally speed)
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-07-11 18:59:21 +02:00
|
|
|
@@ -1933,6 +1939,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2018-10-25 15:38:19 +02:00
|
|
|
* @param force whether to send the particle to players within an extended
|
|
|
|
* range and encourage their client to render it regardless of
|
|
|
|
* settings
|
|
|
|
+ * @param <T> Particle data type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data, boolean force);
|
2018-10-25 15:38:19 +02:00
|
|
|
|
2019-07-11 18:59:21 +02:00
|
|
|
@@ -1958,6 +1965,7 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2018-10-25 15:38:19 +02:00
|
|
|
* @param force whether to send the particle to players within an extended
|
|
|
|
* range and encourage their client to render it regardless of
|
|
|
|
* settings
|
|
|
|
+ * @param <T> Particle data type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data, boolean force);
|
2018-10-25 15:38:19 +02:00
|
|
|
|
2018-08-17 06:29:16 +02:00
|
|
|
diff --git a/src/main/java/org/bukkit/entity/AreaEffectCloud.java b/src/main/java/org/bukkit/entity/AreaEffectCloud.java
|
2019-06-25 03:47:58 +02:00
|
|
|
index c2096b53..bca9d365 100644
|
2018-08-17 06:29:16 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/AreaEffectCloud.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/AreaEffectCloud.java
|
2019-05-22 06:14:56 +02:00
|
|
|
@@ -142,6 +142,7 @@ public interface AreaEffectCloud extends Entity {
|
2018-08-17 06:29:16 +02:00
|
|
|
* @param particle the new particle type
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> the particle data type // Paper
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
<T> void setParticle(@NotNull Particle particle, @Nullable T data);
|
2018-08-17 06:29:16 +02:00
|
|
|
|
2017-06-11 00:11:10 +02:00
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
2019-06-25 03:47:58 +02:00
|
|
|
index f41545c5..576ad2c6 100644
|
2017-06-11 00:11:10 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -461,7 +461,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
*
|
|
|
|
* Use supplied alternative character to the section symbol to represent legacy color codes.
|
|
|
|
*
|
|
|
|
- * @param alternateChar Alternate symbol such as '&'
|
|
|
|
+ * @param alternateChar Alternate symbol such as '&'
|
|
|
|
* @param message The message to send
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public void sendActionBar(char alternateChar, @NotNull String message);
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -528,6 +528,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
/**
|
|
|
|
* Update the subtitle of titles displayed to the player
|
|
|
|
*
|
|
|
|
+ * @param subtitle Subtitle to set
|
|
|
|
* @deprecated Use {@link #updateTitle(Title)}
|
|
|
|
*/
|
|
|
|
@Deprecated
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -536,6 +537,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
/**
|
|
|
|
* Update the subtitle of titles displayed to the player
|
|
|
|
*
|
|
|
|
+ * @param subtitle Subtitle to set
|
|
|
|
* @deprecated Use {@link #updateTitle(Title)}
|
|
|
|
*/
|
|
|
|
@Deprecated
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -544,6 +546,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
/**
|
|
|
|
* Show the given title to the player, along with the last subtitle set, using the last set times
|
|
|
|
*
|
|
|
|
+ * @param title Title to set
|
|
|
|
* @deprecated Use {@link #sendTitle(Title)} or {@link #updateTitle(Title)}
|
|
|
|
*/
|
|
|
|
@Deprecated
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -552,6 +555,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
/**
|
|
|
|
* Show the given title to the player, along with the last subtitle set, using the last set times
|
|
|
|
*
|
|
|
|
+ * @param title Title to set
|
|
|
|
* @deprecated Use {@link #sendTitle(Title)} or {@link #updateTitle(Title)}
|
|
|
|
*/
|
|
|
|
@Deprecated
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -1452,6 +1456,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
* @param count the number of particles
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -1468,6 +1473,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
* @param count the number of particles
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -1518,6 +1524,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
* @param offsetZ the maximum random offset on the Z axis
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -1538,6 +1545,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
* @param offsetZ the maximum random offset on the Z axis
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -1594,6 +1602,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
* particle used (normally speed)
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-06-25 03:47:58 +02:00
|
|
|
@@ -1616,6 +1625,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2017-06-11 00:11:10 +02:00
|
|
|
* particle used (normally speed)
|
|
|
|
* @param data the data to use for the particle or null,
|
|
|
|
* the type of this depends on {@link Particle#getDataType()}
|
|
|
|
+ * @param <T> Type
|
|
|
|
*/
|
2019-03-20 01:28:15 +01:00
|
|
|
public <T> void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data);
|
2017-06-11 00:11:10 +02:00
|
|
|
|
2019-04-15 00:45:42 +02:00
|
|
|
diff --git a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
|
2019-06-25 03:47:58 +02:00
|
|
|
index 1b2267f4..1a58734d 100644
|
2019-04-15 00:45:42 +02:00
|
|
|
--- a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
|
|
|
|
+++ b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
|
2019-05-06 04:58:04 +02:00
|
|
|
@@ -78,7 +78,7 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable {
|
2019-04-15 00:45:42 +02:00
|
|
|
*
|
|
|
|
* @return Location the player moved to
|
|
|
|
*/
|
|
|
|
- @Nullable
|
|
|
|
+ @NotNull // Paper
|
|
|
|
public Location getTo() {
|
|
|
|
return to;
|
|
|
|
}
|
2017-06-11 00:11:10 +02:00
|
|
|
--
|
2019-06-25 03:47:58 +02:00
|
|
|
2.22.0
|
2017-06-11 00:11:10 +02:00
|
|
|
|