Package org.bukkit.entity
Interface AreaEffectCloud
- All Superinterfaces:
- Audience,- CommandSender,- Entity,- HoverEventSource<HoverEvent.ShowEntity>,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- PersistentDataViewHolder,- Pointered,- ServerOperator,- Sound.Emitter
Represents an area effect cloud which will imbue a potion effect onto
 entities which enter it.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddCustomEffect(@NotNull PotionEffect effect, boolean overwrite) Adds a custom potion effect to this cloud.voidRemoves all custom potion effects from this cloud.Deprecated.Returns the potion type about the base potiongetColor()Gets the color of this cloud.Gets an immutable list containing all custom potion effects applied to this cloud.intGets the duration which this cloud will exist for (in ticks).intGets the amount that the duration of this cloud will decrease by when it applies an effect to an entity.Get the entity UUID for the owner of this area effect cloud.Gets the particle which this cloud will be composed offloatGets the initial radius of the cloud.floatGets the amount that the radius of this cloud will decrease by when it applies an effect to an entity.floatGets the amount that the radius of this cloud will decrease by each tick.intGets the time that an entity will be immune from subsequent exposure.Retrieve the original source of this cloud.intGets the time which an entity has to be exposed to the cloud before the effect is applied.booleanChecks for a specific custom potion effect type on this cloud.booleanChecks for the presence of custom potion effects.booleanRemoves a custom potion effect from this cloud.voidDeprecated.Upgraded / extended potions are now their ownPotionTypeusesetBasePotionType(org.bukkit.potion.PotionType)instead.voidSets the underlying potion typevoidSets the color of this cloud.voidsetDuration(int duration) Sets the duration which this cloud will exist for (in ticks).voidsetDurationOnUse(int duration) Sets the amount that the duration of this cloud will decrease by when it applies an effect to an entity.voidsetOwnerUniqueId(UUID ownerUuid) Sets the entity UUID for the owner of this area effect cloud.voidsetParticle(@NotNull Particle particle) Sets the particle which this cloud will be composed of<T> voidsetParticle(@NotNull Particle particle, T data) Sets the particle which this cloud will be composed ofvoidsetRadius(float radius) Sets the initial radius of the cloud.voidsetRadiusOnUse(float radius) Sets the amount that the radius of this cloud will decrease by when it applies an effect to an entity.voidsetRadiusPerTick(float radius) Gets the amount that the radius of this cloud will decrease by each tick.voidsetReapplicationDelay(int delay) Sets the time that an entity will be immune from subsequent exposure.voidsetSource(@Nullable ProjectileSource source) Set the original source of this cloud.voidsetWaitTime(int waitTime) Sets the time which an entity has to be exposed to the cloud before the effect is applied.Methods inherited from interface net.kyori.adventure.audience.AudienceclearResourcePacks, clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSendergetName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, asHoverEvent, broadcastHurtAnimation, collidesAt, copy, copy, createSnapshot, eject, fromMobSpawner, getAsString, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hasNoPhysics, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setLastDamageCause, setNoPhysics, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEventMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablecustomName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointeredget, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getDurationint getDuration()Gets the duration which this cloud will exist for (in ticks).- Returns:
- cloud duration
 
- 
setDurationvoid setDuration(int duration) Sets the duration which this cloud will exist for (in ticks).- Parameters:
- duration- cloud duration
 
- 
getWaitTimeint getWaitTime()Gets the time which an entity has to be exposed to the cloud before the effect is applied.- Returns:
- wait time
 
- 
setWaitTimevoid setWaitTime(int waitTime) Sets the time which an entity has to be exposed to the cloud before the effect is applied.- Parameters:
- waitTime- wait time
 
- 
getReapplicationDelayint getReapplicationDelay()Gets the time that an entity will be immune from subsequent exposure.- Returns:
- reapplication delay
 
- 
setReapplicationDelayvoid setReapplicationDelay(int delay) Sets the time that an entity will be immune from subsequent exposure.- Parameters:
- delay- reapplication delay
 
- 
getDurationOnUseint getDurationOnUse()Gets the amount that the duration of this cloud will decrease by when it applies an effect to an entity.- Returns:
- duration on use delta
 
- 
setDurationOnUsevoid setDurationOnUse(int duration) Sets the amount that the duration of this cloud will decrease by when it applies an effect to an entity.- Parameters:
- duration- duration on use delta
 
- 
getRadiusfloat getRadius()Gets the initial radius of the cloud.- Returns:
- radius
 
- 
setRadiusvoid setRadius(float radius) Sets the initial radius of the cloud.- Parameters:
- radius- radius
 
- 
getRadiusOnUsefloat getRadiusOnUse()Gets the amount that the radius of this cloud will decrease by when it applies an effect to an entity.- Returns:
- radius on use delta
 
- 
setRadiusOnUsevoid setRadiusOnUse(float radius) Sets the amount that the radius of this cloud will decrease by when it applies an effect to an entity.- Parameters:
- radius- radius on use delta
 
- 
getRadiusPerTickfloat getRadiusPerTick()Gets the amount that the radius of this cloud will decrease by each tick.- Returns:
- radius per tick delta
 
- 
setRadiusPerTickvoid setRadiusPerTick(float radius) Gets the amount that the radius of this cloud will decrease by each tick.- Parameters:
- radius- per tick delta
 
- 
getParticleGets the particle which this cloud will be composed of- Returns:
- particle the set particle type
 
- 
setParticleSets the particle which this cloud will be composed of- Parameters:
- particle- the new particle type
 
- 
setParticleSets the particle which this cloud will be composed of- Type Parameters:
- T- type of particle data (see- Particle.getDataType()
- Parameters:
- particle- the new particle type
- data- the data to use for the particle or null, the type of this depends on- Particle.getDataType()
 
- 
setBasePotionDataDeprecated.Upgraded / extended potions are now their ownPotionTypeusesetBasePotionType(org.bukkit.potion.PotionType)instead.Sets the underlying potion data- Parameters:
- data- PotionData to set the base potion state to
 
- 
getBasePotionDataDeprecated.Upgraded / extended potions are now their ownPotionTypeusegetBasePotionType()instead.Returns the potion data about the base potion- Returns:
- a PotionData object
 
- 
setBasePotionTypeSets the underlying potion type- Parameters:
- type- PotionType to set the base potion state to
 
- 
getBasePotionTypeReturns the potion type about the base potion- Returns:
- a PotionType object
 
- 
hasCustomEffectsboolean hasCustomEffects()Checks for the presence of custom potion effects.- Returns:
- true if custom potion effects are applied
 
- 
getCustomEffectsGets an immutable list containing all custom potion effects applied to this cloud.Plugins should check that hasCustomEffects() returns true before calling this method. - Returns:
- the immutable list of custom potion effects
 
- 
addCustomEffectAdds a custom potion effect to this cloud.- Parameters:
- effect- the potion effect to add
- overwrite- true if any existing effect of the same type should be overwritten
- Returns:
- true if the effect was added as a result of this call
 
- 
removeCustomEffectRemoves a custom potion effect from this cloud.- Parameters:
- type- the potion effect type to remove
- Returns:
- true if the an effect was removed as a result of this call
 
- 
hasCustomEffectChecks for a specific custom potion effect type on this cloud.- Parameters:
- type- the potion effect type to check for
- Returns:
- true if the potion has this effect
 
- 
clearCustomEffectsvoid clearCustomEffects()Removes all custom potion effects from this cloud.
- 
getColorGets the color of this cloud. Will be applied as a tint to its particles.- Returns:
- cloud color
 
- 
setColorSets the color of this cloud. Will be applied as a tint to its particles.- Parameters:
- color- cloud color
 
- 
getSourceRetrieve the original source of this cloud.- Returns:
- the ProjectileSourcethat threw the LingeringPotion
 
- 
setSourceSet the original source of this cloud.- Parameters:
- source- the- ProjectileSourcethat threw the LingeringPotion
 
- 
getOwnerUniqueIdGet the entity UUID for the owner of this area effect cloud.- Returns:
- the entity owner uuid or null
 
- 
setOwnerUniqueIdSets the entity UUID for the owner of this area effect cloud.- Parameters:
- ownerUuid- the entity owner uuid or null to clear
 
 
- 
PotionTypeusegetBasePotionType()instead.