geforkt von Mirrors/Paper
Added World.strikeLightningEffect() that does no damage.
By: sk89q <the.sk89q@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
4023a32a54
Commit
bf5e68b18b
@ -371,6 +371,12 @@ public class CraftWorld implements World {
|
||||
return new CraftLightningStrike(server, lightning);
|
||||
}
|
||||
|
||||
public LightningStrike strikeLightningEffect(Location loc) {
|
||||
EntityWeatherStorm lightning = new EntityWeatherStorm(world, loc.getX(), loc.getY(), loc.getZ(), true);
|
||||
world.a(lightning);
|
||||
return new CraftLightningStrike(server, lightning);
|
||||
}
|
||||
|
||||
public boolean generateTree(Location loc, TreeType type) {
|
||||
return generateTree(loc, type, world);
|
||||
}
|
||||
|
@ -14,4 +14,8 @@ public class CraftLightningStrike extends CraftEntity implements LightningStrike
|
||||
public EntityWeatherStorm getHandle() {
|
||||
return (EntityWeatherStorm)super.getHandle();
|
||||
}
|
||||
|
||||
public boolean isEffect() {
|
||||
return ((EntityWeatherStorm) super.getHandle()).isEffect;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren