mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
e4d10a6d67
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 122289ff Add FaceAttachable interface to handle Grindstone facing in common with Switches a6db750e SPIGOT-5647: ZombieVillager entity should have getVillagerType() CraftBukkit Changes:bbe3d58e
SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException3075579f
Add FaceAttachable interface to handle Grindstone facing in common with Switches95bd4238
SPIGOT-5647: ZombieVillager entity should have getVillagerType()4d975ac3
SPIGOT-5617: setBlockData does not work when NotPlayEvent is called by redstone current
47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
From dbf6e3d0d411003e38f9fd4f9ccf156d9aa05a5b Mon Sep 17 00:00:00 2001
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
Date: Sat, 9 Jun 2018 13:08:21 +0100
|
|
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 000000000..bfc69a43c
|
|
--- /dev/null
|
|
+++ b/src/main/java/com/destroystokyo/paper/event/entity/EntityTeleportEndGatewayEvent.java
|
|
@@ -0,0 +1,31 @@
|
|
+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.NotNull;
|
|
+
|
|
+/**
|
|
+ * Fired any time an entity attempts to teleport in an end gateway
|
|
+ */
|
|
+public class EntityTeleportEndGatewayEvent extends EntityTeleportEvent {
|
|
+
|
|
+ @NotNull private final EndGateway gateway;
|
|
+
|
|
+ public EntityTeleportEndGatewayEvent(@NotNull Entity what, @NotNull Location from, @NotNull Location to, @NotNull EndGateway gateway) {
|
|
+ super(what, from, to);
|
|
+ this.gateway = gateway;
|
|
+ }
|
|
+
|
|
+ /**
|
|
+ * The gateway triggering the teleport
|
|
+ *
|
|
+ * @return EndGateway used
|
|
+ */
|
|
+ @NotNull
|
|
+ public EndGateway getGateway() {
|
|
+ return gateway;
|
|
+ }
|
|
+
|
|
+}
|
|
--
|
|
2.25.1
|
|
|