Package org.bukkit
Class World.Spigot
java.lang.Object
org.bukkit.World.Spigot
- Enclosing interface:
- World
public static class World.Spigot
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Spigot() -
Method Summary
Modifier and Type Method Description voidplayEffect(Location location, Effect effect)Plays an effect to all players within a default radius around a given location.voidplayEffect(Location location, Effect effect, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int particleCount, int radius)Plays an effect to all players within a default radius around a given location.LightningStrikestrikeLightning(Location loc, boolean isSilent)Strikes lightning at the givenLocationand possibly without soundLightningStrikestrikeLightningEffect(Location loc, boolean isSilent)Strikes lightning at the givenLocationwithout doing damage and possibly without sound
-
Constructor Details
-
Spigot
public Spigot()
-
-
Method Details
-
playEffect
Plays an effect to all players within a default radius around a given location. -
playEffect
public void playEffect(Location location, Effect effect, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int particleCount, int radius)Plays an effect to all players within a default radius around a given location. The effect will use the provided material (and material data if required). The particle's position on the client will be the given location, adjusted on each axis by a normal distribution with mean 0 and standard deviation given in the offset parameters, each particle has independently calculated offsets. The effect will have the given speed and particle count if the effect is a particle. Some effect will create multiple particles.- Parameters:
location- theLocationaround which players must be to see the effecteffect- effect theEffectid- the item/block/data id for the effectdata- the data value of the block/item for the effectoffsetX- the amount to be randomly offset by in the X axisoffsetY- the amount to be randomly offset by in the Y axisoffsetZ- the amount to be randomly offset by in the Z axisspeed- the speed of the particlesparticleCount- the number of particlesradius- the radius around the location
-
strikeLightning
Strikes lightning at the givenLocationand possibly without sound- Parameters:
loc- The location to strike lightningisSilent- Whether this strike makes no sound- Returns:
- The lightning entity.
-
strikeLightningEffect
Strikes lightning at the givenLocationwithout doing damage and possibly without sound- Parameters:
loc- The location to strike lightningisSilent- Whether this strike makes no sound- Returns:
- The lightning entity.
-