summaryrefslogtreecommitdiffhomepage
path: root/patches/api/0049-PlayerTeleportEndGatewayEvent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0049-PlayerTeleportEndGatewayEvent.patch')
-rw-r--r--patches/api/0049-PlayerTeleportEndGatewayEvent.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/patches/api/0049-PlayerTeleportEndGatewayEvent.patch b/patches/api/0049-PlayerTeleportEndGatewayEvent.patch
index b964a35e5d..b52aaaead8 100644
--- a/patches/api/0049-PlayerTeleportEndGatewayEvent.patch
+++ b/patches/api/0049-PlayerTeleportEndGatewayEvent.patch
@@ -7,7 +7,7 @@ Allows you to access the Gateway being used in a teleport event
diff --git a/src/main/java/com/destroystokyo/paper/event/player/PlayerTeleportEndGatewayEvent.java b/src/main/java/com/destroystokyo/paper/event/player/PlayerTeleportEndGatewayEvent.java
new file mode 100644
-index 0000000000000000000000000000000000000000..40bd79fbe30f19bc93e34da52d2b2bf0768be974
+index 0000000000000000000000000000000000000000..4488154d3f99f4281b08eef8a44c13fd896e538f
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/event/player/PlayerTeleportEndGatewayEvent.java
@@ -0,0 +1,32 @@
@@ -18,17 +18,18 @@ index 0000000000000000000000000000000000000000..40bd79fbe30f19bc93e34da52d2b2bf0
+import org.bukkit.entity.Player;
+import org.bukkit.event.player.PlayerTeleportEvent;
+import org.jetbrains.annotations.ApiStatus;
-+import org.jetbrains.annotations.NotNull;
++import org.jspecify.annotations.NullMarked;
+
+/**
+ * Fired when a teleport is triggered for an End Gateway
+ */
++@NullMarked
+public class PlayerTeleportEndGatewayEvent extends PlayerTeleportEvent {
+
-+ @NotNull private final EndGateway gateway;
++ private final EndGateway gateway;
+
+ @ApiStatus.Internal
-+ public PlayerTeleportEndGatewayEvent(@NotNull Player player, @NotNull Location from, @NotNull Location to, @NotNull EndGateway gateway) {
++ public PlayerTeleportEndGatewayEvent(final Player player, final Location from, final Location to, final EndGateway gateway) {
+ super(player, from, to, PlayerTeleportEvent.TeleportCause.END_GATEWAY);
+ this.gateway = gateway;
+ }
@@ -38,7 +39,6 @@ index 0000000000000000000000000000000000000000..40bd79fbe30f19bc93e34da52d2b2bf0
+ *
+ * @return EndGateway used
+ */
-+ @NotNull
+ public EndGateway getGateway() {
+ return this.gateway;
+ }