CommandSender
, Entity
, Metadatable
, Nameable
, Permissible
, ServerOperator
public interface AreaEffectCloud extends Entity
Entity.Spigot
Modifier and Type | Method | Description |
---|---|---|
boolean |
addCustomEffect(PotionEffect effect,
boolean overwrite) |
Adds a custom potion effect to this cloud.
|
void |
clearCustomEffects() |
Removes all custom potion effects from this cloud.
|
PotionData |
getBasePotionData() |
Returns the potion data about the base potion
|
Color |
getColor() |
Gets the color of this cloud.
|
List<PotionEffect> |
getCustomEffects() |
Gets an immutable list containing all custom potion effects applied to
this cloud.
|
int |
getDuration() |
Gets the duration which this cloud will exist for (in ticks).
|
int |
getDurationOnUse() |
Gets the amount that the duration of this cloud will decrease by when it
applies an effect to an entity.
|
Particle |
getParticle() |
Gets the particle which this cloud will be composed of
|
float |
getRadius() |
Gets the initial radius of the cloud.
|
float |
getRadiusOnUse() |
Gets the amount that the radius of this cloud will decrease by when it
applies an effect to an entity.
|
float |
getRadiusPerTick() |
Gets the amount that the radius of this cloud will decrease by each tick.
|
int |
getReapplicationDelay() |
Gets the time that an entity will be immune from subsequent exposure.
|
ProjectileSource |
getSource() |
Retrieve the original source of this cloud.
|
int |
getWaitTime() |
Gets the time which an entity has to be exposed to the cloud before the
effect is applied.
|
boolean |
hasCustomEffect(PotionEffectType type) |
Checks for a specific custom potion effect type on this cloud.
|
boolean |
hasCustomEffects() |
Checks for the presence of custom potion effects.
|
boolean |
removeCustomEffect(PotionEffectType type) |
Removes a custom potion effect from this cloud.
|
void |
setBasePotionData(PotionData data) |
Sets the underlying potion data
|
void |
setColor(Color color) |
Sets the color of this cloud.
|
void |
setDuration(int duration) |
Sets the duration which this cloud will exist for (in ticks).
|
void |
setDurationOnUse(int duration) |
Sets the amount that the duration of this cloud will decrease by when it
applies an effect to an entity.
|
void |
setParticle(Particle particle) |
Sets the particle which this cloud will be composed of
|
<T> void |
setParticle(Particle particle,
T data) |
Sets the particle which this cloud will be composed of
|
void |
setRadius(float radius) |
Sets the initial radius of the cloud.
|
void |
setRadiusOnUse(float radius) |
Sets the amount that the radius of this cloud will decrease by when it
applies an effect to an entity.
|
void |
setRadiusPerTick(float radius) |
Gets the amount that the radius of this cloud will decrease by each tick.
|
void |
setReapplicationDelay(int delay) |
Sets the time that an entity will be immune from subsequent exposure.
|
void |
setSource(ProjectileSource source) |
Set the original source of this cloud.
|
void |
setWaitTime(int waitTime) |
Sets the time which an entity has to be exposed to the cloud before the
effect is applied.
|
getName, sendMessage, sendMessage
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
int getDuration()
void setDuration(int duration)
duration
- cloud durationint getWaitTime()
void setWaitTime(int waitTime)
waitTime
- wait timeint getReapplicationDelay()
void setReapplicationDelay(int delay)
delay
- reapplication delayint getDurationOnUse()
void setDurationOnUse(int duration)
duration
- duration on use deltafloat getRadius()
void setRadius(float radius)
radius
- radiusfloat getRadiusOnUse()
void setRadiusOnUse(float radius)
radius
- radius on use deltafloat getRadiusPerTick()
void setRadiusPerTick(float radius)
radius
- per tick delta@NotNull Particle getParticle()
void setParticle(@NotNull Particle particle)
particle
- the new particle type<T> void setParticle(@NotNull Particle particle, @Nullable T data)
particle
- the new particle typedata
- the data to use for the particle or null,
the type of this depends on Particle.getDataType()
void setBasePotionData(@NotNull PotionData data)
data
- PotionData to set the base potion state to@NotNull PotionData getBasePotionData()
boolean hasCustomEffects()
@NotNull List<PotionEffect> getCustomEffects()
Plugins should check that hasCustomEffects() returns true before calling this method.
boolean addCustomEffect(@NotNull PotionEffect effect, boolean overwrite)
effect
- the potion effect to addoverwrite
- true if any existing effect of the same type should be
overwrittenboolean removeCustomEffect(@NotNull PotionEffectType type)
type
- the potion effect type to removeboolean hasCustomEffect(@Nullable PotionEffectType type)
type
- the potion effect type to check forvoid clearCustomEffects()
@NotNull Color getColor()
void setColor(@NotNull Color color)
color
- cloud color@Nullable ProjectileSource getSource()
ProjectileSource
that threw the LingeringPotionvoid setSource(@Nullable ProjectileSource source)
source
- the ProjectileSource
that threw the LingeringPotionCopyright © 2019. All rights reserved.