mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 22:22:18 -07:00
Add TNT source location API
This commit is contained in:
23
Spigot-API-Patches/Add-TNT-source-location-API.patch
Normal file
23
Spigot-API-Patches/Add-TNT-source-location-API.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From 0000000000000000000000000000000000000000 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/TNTPrimed.java
|
||||
+++ b/src/main/java/org/bukkit/entity/TNTPrimed.java
|
||||
@@ -0,0 +0,0 @@ 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();
|
||||
}
|
||||
--
|
Reference in New Issue
Block a user