19972e09b8
5a0150f586ed3eb15fe6f1f596d1a5a7d806f0f9 Fix ITEM_BREAK e6a3911057bd94d8bd7021cbb4923fb84fb106d1 Upstream merge d1cdcf8d4c3639f956474f02ed662517cffbe23e Remove old patch 068df64aeee368377e1673667bffc7a6dcf90554 Rebuild all patches
70 lines
2.3 KiB
Diff
70 lines
2.3 KiB
Diff
From 068c3416cfb2542f94308893bfe6932f01870acb Mon Sep 17 00:00:00 2001
|
|
From: drXor <mcyoungsota@gmail.com>
|
|
Date: Sun, 23 Feb 2014 16:16:29 -0400
|
|
Subject: [PATCH] Silenceable Lightning API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
|
index a909073..fd399d3 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -1212,6 +1212,30 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
{
|
|
throw new UnsupportedOperationException( "Not supported yet." );
|
|
}
|
|
+
|
|
+ /**
|
|
+ * Strikes lightning at the given {@link Location} and possibly without sound
|
|
+ *
|
|
+ * @param loc The location to strike lightning
|
|
+ * @param isSilent Whether this strike makes no sound
|
|
+ * @return The lightning entity.
|
|
+ */
|
|
+ public LightningStrike strikeLightning(Location loc, boolean isSilent)
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet." );
|
|
+ }
|
|
+
|
|
+ /**
|
|
+ * Strikes lightning at the given {@link Location} without doing damage and possibly without sound
|
|
+ *
|
|
+ * @param loc The location to strike lightning
|
|
+ * @param isSilent Whether this strike makes no sound
|
|
+ * @return The lightning entity.
|
|
+ */
|
|
+ public LightningStrike strikeLightningEffect(Location loc, boolean isSilent)
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet." );
|
|
+ }
|
|
}
|
|
|
|
Spigot spigot();
|
|
diff --git a/src/main/java/org/bukkit/entity/LightningStrike.java b/src/main/java/org/bukkit/entity/LightningStrike.java
|
|
index c8b5154..1ed4ac9 100644
|
|
--- a/src/main/java/org/bukkit/entity/LightningStrike.java
|
|
+++ b/src/main/java/org/bukkit/entity/LightningStrike.java
|
|
@@ -12,4 +12,21 @@ public interface LightningStrike extends Weather {
|
|
*/
|
|
public boolean isEffect();
|
|
|
|
+
|
|
+ public class Spigot extends Entity.Spigot
|
|
+ {
|
|
+
|
|
+ /*
|
|
+ * Returns whether the strike is silent.
|
|
+ *
|
|
+ * @return whether the strike is silent.
|
|
+ */
|
|
+ public boolean isSilent()
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet." );
|
|
+ }
|
|
+
|
|
+ }
|
|
+
|
|
+ Spigot spigot();
|
|
}
|
|
--
|
|
2.1.0
|
|
|