Implement Silenceable Lightning API

By: drXor <mcyoungsota@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2014-02-23 16:16:59 -04:00
parent 9c8d5eefd0
commit 59b0d3d6b2
2 changed files with 17 additions and 0 deletions

View file

@ -2092,6 +2092,18 @@ public class CraftWorld extends CraftRegionAccessor implements World {
// Spigot start
private final org.bukkit.World.Spigot spigot = new org.bukkit.World.Spigot()
{
@Override
public LightningStrike strikeLightning(Location loc, boolean isSilent)
{
return CraftWorld.this.strikeLightning(loc);
}
@Override
public LightningStrike strikeLightningEffect(Location loc, boolean isSilent)
{
return CraftWorld.this.strikeLightningEffect(loc);
}
};
public org.bukkit.World.Spigot spigot()

View file

@ -54,6 +54,11 @@ public class CraftLightningStrike extends CraftEntity implements LightningStrike
// Spigot start
private final LightningStrike.Spigot spigot = new LightningStrike.Spigot() {
@Override
public boolean isSilent()
{
return false;
}
};
@Override