Constructor and Description |
---|
Spigot() |
Modifier and Type | Method and Description |
---|---|
void |
playEffect(Location location,
Effect effect)
Plays an effect to all players within a default radius around a given
location.
|
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.
|
LightningStrike |
strikeLightning(Location loc,
boolean isSilent)
Strikes lightning at the given
Location and possibly without sound |
LightningStrike |
strikeLightningEffect(Location loc,
boolean isSilent)
Strikes lightning at the given
Location without doing damage and possibly without sound |
public void playEffect(Location location, Effect effect)
location
- the Location
around which players must be to
see the effecteffect
- the Effect
IllegalArgumentException
- if the location or effect is null.
It also throws when the effect requires a material or a material datapublic void playEffect(Location location, Effect effect, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int particleCount, int radius)
location
- the Location
around which players must be to
see the effecteffect
- effect the Effect
id
- 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 locationpublic LightningStrike strikeLightning(Location loc, boolean isSilent)
Location
and possibly without soundloc
- The location to strike lightningisSilent
- Whether this strike makes no soundpublic LightningStrike strikeLightningEffect(Location loc, boolean isSilent)
Location
without doing damage and possibly without soundloc
- The location to strike lightningisSilent
- Whether this strike makes no soundCopyright © 2022. All rights reserved.