PaperMC/Spigot-API-Patches/Add-FallingBlock-source-location-API.patch

23 lines
985 B
Diff
Raw Normal View History

2015-04-17 11:51:46 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Byteflux <byte@byteflux.net>
Date: Fri, 17 Apr 2015 02:43:00 -0700
Subject: [PATCH] Add FallingBlock source location API
diff --git a/src/main/java/org/bukkit/entity/FallingBlock.java b/src/main/java/org/bukkit/entity/FallingBlock.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/org/bukkit/entity/FallingBlock.java
+++ b/src/main/java/org/bukkit/entity/FallingBlock.java
@@ -0,0 +0,0 @@ public interface FallingBlock extends Entity {
2015-09-19 03:44:37 +02:00
* @param hurtEntities whether entities will be damaged by this block.
2015-04-17 11:51:46 +02:00
*/
2015-09-19 03:44:37 +02:00
void setHurtEntities(boolean hurtEntities);
2015-04-17 11:51:46 +02:00
+
+ /**
+ * Gets the source block location of the falling block
+ *
+ * @return the source block location the falling block was spawned from
+ */
+ org.bukkit.Location getSourceLoc(); // PaperSpigot - Add FallingBlock source location API
}
2015-09-19 03:44:37 +02:00
--