mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Silenceable Lightning API
By: drXor <mcyoungsota@gmail.com>
This commit is contained in:
parent
666a89b3e3
commit
7e29c12d04
2 changed files with 39 additions and 0 deletions
|
@ -2831,6 +2831,35 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
||||||
// Spigot start
|
// Spigot start
|
||||||
public class Spigot {
|
public class Spigot {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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.
|
||||||
|
* @deprecated sound is now client side and cannot be removed
|
||||||
|
* @see World#strikeLightning(org.bukkit.Location)
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
@Deprecated(since = "1.20.4")
|
||||||
|
public LightningStrike strikeLightning(@NotNull 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.
|
||||||
|
* @deprecated sound is now client side and cannot be removed
|
||||||
|
* @see World#strikeLightningEffect(org.bukkit.Location)
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
@Deprecated(since = "1.20.4")
|
||||||
|
public LightningStrike strikeLightningEffect(@NotNull Location loc, boolean isSilent) {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -86,6 +86,16 @@ public interface LightningStrike extends Entity {
|
||||||
// Spigot start
|
// Spigot start
|
||||||
public class Spigot extends Entity.Spigot {
|
public class Spigot extends Entity.Spigot {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether the strike is silent.
|
||||||
|
*
|
||||||
|
* @return whether the strike is silent.
|
||||||
|
* @deprecated sound is now client side and cannot be removed
|
||||||
|
*/
|
||||||
|
@Deprecated(since = "1.20.4")
|
||||||
|
public boolean isSilent() {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
Loading…
Reference in a new issue