32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 8d968bfb8e51080aff8a4fbf95455ce4c5ab0742 Mon Sep 17 00:00:00 2001
|
|
From: Byteflux <byte@byteflux.net>
|
|
Date: Wed, 18 Mar 2015 04:13:38 -0700
|
|
Subject: [PATCH] Add FallingBlock and TNT source location API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/FallingBlock.java b/src/main/java/org/bukkit/entity/FallingBlock.java
|
|
index 1edd6e06..799c43a1 100644
|
|
--- a/src/main/java/org/bukkit/entity/FallingBlock.java
|
|
+++ b/src/main/java/org/bukkit/entity/FallingBlock.java
|
|
@@ -45,4 +45,6 @@ public interface FallingBlock extends Entity {
|
|
* @param drop true to break into an item when obstructed
|
|
*/
|
|
void setDropItem(boolean drop);
|
|
+
|
|
+ org.bukkit.Location getSourceLoc(); // PaperSpigot - Add FallingBlock and 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 3ce322d9..cc3ddca6 100644
|
|
--- a/src/main/java/org/bukkit/entity/TNTPrimed.java
|
|
+++ b/src/main/java/org/bukkit/entity/TNTPrimed.java
|
|
@@ -35,4 +35,6 @@ public interface TNTPrimed extends Explosive {
|
|
* @return the source of this primed TNT
|
|
*/
|
|
public Entity getSource();
|
|
+
|
|
+ org.bukkit.Location getSourceLoc(); // PaperSpigot - Add FallingBlock and TNT source location API
|
|
}
|
|
--
|
|
2.11.0.windows.3
|
|
|