13
0
geforkt von Mirrors/Paper
Paper/Spigot-API-Patches/0009-Add-FallingBlock-source-location-API.patch

26 Zeilen
931 B
Diff

2015-09-19 03:44:37 +02:00
From f255e1de552da583447620334ba2df03daabf61d Mon Sep 17 00:00:00 2001
2015-04-17 11:51:46 +02:00
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
2015-09-19 03:44:37 +02:00
index bc56fa2..240a278 100644
2015-04-17 11:51:46 +02:00
--- a/src/main/java/org/bukkit/entity/FallingBlock.java
+++ b/src/main/java/org/bukkit/entity/FallingBlock.java
2015-09-19 03:44:37 +02:00
@@ -59,4 +59,11 @@ public interface FallingBlock extends Entity {
* @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
2.5.2
2015-04-17 11:51:46 +02:00