diff options
Diffstat (limited to 'patches/api/0109-Add-EntityTeleportEndGatewayEvent.patch')
-rw-r--r-- | patches/api/0109-Add-EntityTeleportEndGatewayEvent.patch | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/patches/api/0109-Add-EntityTeleportEndGatewayEvent.patch b/patches/api/0109-Add-EntityTeleportEndGatewayEvent.patch index 0422ec9858..995b2328f6 100644 --- a/patches/api/0109-Add-EntityTeleportEndGatewayEvent.patch +++ b/patches/api/0109-Add-EntityTeleportEndGatewayEvent.patch @@ -6,16 +6,17 @@ Subject: [PATCH] Add EntityTeleportEndGatewayEvent diff --git a/src/main/java/com/destroystokyo/paper/event/entity/EntityTeleportEndGatewayEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/EntityTeleportEndGatewayEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..bfc69a43c291fbed91b9d0387e4ef18b0ed1b9de +index 0000000000000000000000000000000000000000..88b9c059f9d66877260c66496443ad0aefaf8f47 --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/event/entity/EntityTeleportEndGatewayEvent.java -@@ -0,0 +1,31 @@ +@@ -0,0 +1,33 @@ +package com.destroystokyo.paper.event.entity; + +import org.bukkit.Location; +import org.bukkit.block.EndGateway; +import org.bukkit.entity.Entity; +import org.bukkit.event.entity.EntityTeleportEvent; ++import org.jetbrains.annotations.ApiStatus; +import org.jetbrains.annotations.NotNull; + +/** @@ -25,8 +26,9 @@ index 0000000000000000000000000000000000000000..bfc69a43c291fbed91b9d0387e4ef18b + + @NotNull private final EndGateway gateway; + -+ public EntityTeleportEndGatewayEvent(@NotNull Entity what, @NotNull Location from, @NotNull Location to, @NotNull EndGateway gateway) { -+ super(what, from, to); ++ @ApiStatus.Internal ++ public EntityTeleportEndGatewayEvent(@NotNull Entity entity, @NotNull Location from, @NotNull Location to, @NotNull EndGateway gateway) { ++ super(entity, from, to); + this.gateway = gateway; + } + @@ -37,7 +39,7 @@ index 0000000000000000000000000000000000000000..bfc69a43c291fbed91b9d0387e4ef18b + */ + @NotNull + public EndGateway getGateway() { -+ return gateway; ++ return this.gateway; + } + +} |