2015-02-26 11:40:16 +01:00
|
|
|
From 27f902f0f3e5f5433c2b6b57de05f1c9377b6770 Mon Sep 17 00:00:00 2001
|
2014-07-21 22:46:54 +02:00
|
|
|
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
|
2015-02-06 11:08:31 +01:00
|
|
|
index e3c6ef4..4f05aa7 100644
|
2014-07-21 22:46:54 +02:00
|
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
|
|
+++ b/src/main/java/org/bukkit/World.java
|
2015-02-06 11:08:31 +01:00
|
|
|
@@ -1215,6 +1215,30 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2014-07-21 22:46:54 +02:00
|
|
|
{
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
--
|
2014-11-28 02:17:45 +01:00
|
|
|
2.1.0
|
2014-07-21 22:46:54 +02:00
|
|
|
|