public static class World.Spigot
extends java.lang.Object
Constructor | Description |
---|---|
Spigot() |
Modifier and Type | Method | Description |
---|---|---|
void |
playEffect(Location location,
Effect effect) |
Deprecated.
Spigot specific API, use
Particle . |
void |
playEffect(Location location,
Effect effect,
int id,
int data,
float offsetX,
float offsetY,
float offsetZ,
float speed,
int particleCount,
int radius) |
Deprecated.
Spigot specific API, use
Particle . |
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 |
@Deprecated public void playEffect(Location location, Effect effect)
Particle
.@Deprecated public void playEffect(Location location, Effect effect, int id, int data, float offsetX, float offsetY, float offsetZ, float speed, int particleCount, int radius)
Particle
.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 © 2018. All rights reserved.