mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Implement Silenceable Lightning API
By: drXor <mcyoungsota@gmail.com>
This commit is contained in:
parent
9c8d5eefd0
commit
59b0d3d6b2
2 changed files with 17 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue