mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 22:52:13 -07:00
Mark PlayerMoveEvent#setTo as NotNull
This commit is contained in:
@@ -286,6 +286,19 @@ index 8d4c70031..b493173e2 100644
|
|||||||
*/
|
*/
|
||||||
public PlayerLoginEvent(@NotNull final Player player, @NotNull String hostname, @NotNull final InetAddress address, @NotNull final Result result, @NotNull final String message, @NotNull final InetAddress realAddress) { // Spigot
|
public PlayerLoginEvent(@NotNull final Player player, @NotNull String hostname, @NotNull final InetAddress address, @NotNull final Result result, @NotNull final String message, @NotNull final InetAddress realAddress) { // Spigot
|
||||||
this(player, hostname, address, realAddress); // Spigot
|
this(player, hostname, address, realAddress); // Spigot
|
||||||
|
diff --git a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
|
||||||
|
index 8b9018451..374fe3644 100644
|
||||||
|
--- a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
|
||||||
|
+++ b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
|
||||||
|
@@ -0,0 +0,0 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable {
|
||||||
|
*
|
||||||
|
* @return Location the player moved to
|
||||||
|
*/
|
||||||
|
- @Nullable
|
||||||
|
+ @NotNull // Paper
|
||||||
|
public Location getTo() {
|
||||||
|
return to;
|
||||||
|
}
|
||||||
diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java
|
diff --git a/src/main/java/org/bukkit/inventory/ItemFactory.java b/src/main/java/org/bukkit/inventory/ItemFactory.java
|
||||||
index 07d2b4cfe..cbcbe8c8a 100644
|
index 07d2b4cfe..cbcbe8c8a 100644
|
||||||
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java
|
--- a/src/main/java/org/bukkit/inventory/ItemFactory.java
|
||||||
|
Reference in New Issue
Block a user