public interface AreaEffectCloud extends Entity
Entity.Spigot| Modifier and Type | Method and Description | 
|---|---|
boolean | 
addCustomEffect(@NotNull PotionEffect effect,
               boolean overwrite)
Adds a custom potion effect to this cloud. 
 | 
void | 
clearCustomEffects()
Removes all custom potion effects from this cloud. 
 | 
@NotNull PotionData | 
getBasePotionData()
Returns the potion data about the base potion 
 | 
@NotNull Color | 
getColor()
Gets the color of this cloud. 
 | 
@NotNull 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. 
 | 
@NotNull 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. 
 | 
@Nullable 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(@Nullable 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(@NotNull PotionEffectType type)
Removes a custom potion effect from this cloud. 
 | 
void | 
setBasePotionData(@NotNull PotionData data)
Sets the underlying potion data 
 | 
void | 
setColor(@NotNull 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(@NotNull Particle particle)
Sets the particle which this cloud will be composed of 
 | 
<T> void | 
setParticle(@NotNull 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(@Nullable 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. 
 | 
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, 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, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNamegetPersistentDataContainerint 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 @NotNull Particle getParticle()
void setParticle(@NotNull
                 @NotNull Particle particle)
particle - the new particle type<T> void setParticle(@NotNull
                     @NotNull Particle particle,
                     @Nullable
                     T data)
T - type of particle data (see Particle.getDataType()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
                       @NotNull PotionData data)
data - PotionData to set the base potion state to@NotNull @NotNull PotionData getBasePotionData()
boolean hasCustomEffects()
@NotNull @NotNull List<PotionEffect> getCustomEffects()
Plugins should check that hasCustomEffects() returns true before calling this method.
boolean addCustomEffect(@NotNull
                        @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
                           @NotNull PotionEffectType type)
type - the potion effect type to removeboolean hasCustomEffect(@Nullable
                        @Nullable PotionEffectType type)
type - the potion effect type to check forvoid clearCustomEffects()
@NotNull @NotNull Color getColor()
void setColor(@NotNull
              @NotNull Color color)
color - cloud color@Nullable @Nullable ProjectileSource getSource()
ProjectileSource that threw the LingeringPotionvoid setSource(@Nullable
               @Nullable ProjectileSource source)
source - the ProjectileSource that threw the LingeringPotionCopyright © 2021. All rights reserved.