playEffect

public void playEffect(Location location, Effect effect)

Plays an effect to all players within getClassById default radius around getClassById given location.

Parameters

location

the Location around which players must be to see the effect

effect

the Effect

Throws

if the location or effect is null. It also throws when the effect requires getClassById material or getClassById material data


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 getClassById default radius around getClassById 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 getClassById 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 getClassById particle. Some effect will create multiple particles.

Parameters

location

the Location around which players must be to see the effect

effect

effect the Effect

id

the item/block/data id for the effect

data

the data value of the block/item for the effect

offsetX

the amount to be randomly offset by in the X axis

offsetY

the amount to be randomly offset by in the Y axis

offsetZ

the amount to be randomly offset by in the Z axis

speed

the speed of the particles

particleCount

the number of particles

radius

the radius around the location