Add TNT source location API
This commit is contained in:
parent
4e29dfb788
commit
2a326d9446
2 changed files with 157 additions and 0 deletions
25
Spigot-API-Patches/0007-Add-TNT-source-location-API.patch
Normal file
25
Spigot-API-Patches/0007-Add-TNT-source-location-API.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
From 28b66c77af202f83255000ebfa9050978a83af4a Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Sun, 30 Nov 2014 22:57:17 -0600
|
||||
Subject: [PATCH] Add TNT source location API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/TNTPrimed.java b/src/main/java/org/bukkit/entity/TNTPrimed.java
|
||||
index 3ce322d..7b1b6b6 100644
|
||||
--- a/src/main/java/org/bukkit/entity/TNTPrimed.java
|
||||
+++ b/src/main/java/org/bukkit/entity/TNTPrimed.java
|
||||
@@ -35,4 +35,11 @@ public interface TNTPrimed extends Explosive {
|
||||
* @return the source of this primed TNT
|
||||
*/
|
||||
public Entity getSource();
|
||||
+
|
||||
+ /**
|
||||
+ * Gets the source block location of the primed TNT.
|
||||
+ *
|
||||
+ * @return the source block location the TNT was spawned from
|
||||
+ */
|
||||
+ public org.bukkit.Location getSourceLoc();
|
||||
}
|
||||
--
|
||||
1.9.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue