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.
|
java.util.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
|
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, getEntityId, 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, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, 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 deltaParticle getParticle()
void setParticle(Particle particle)
particle
- the new particle typevoid setBasePotionData(PotionData data)
data
- PotionData to set the base potion state toPotionData getBasePotionData()
boolean hasCustomEffects()
java.util.List<PotionEffect> getCustomEffects()
Plugins should check that hasCustomEffects() returns true before calling this method.
boolean addCustomEffect(PotionEffect effect, boolean overwrite)
effect
- the potion effect to addoverwrite
- true if any existing effect of the same type should be
overwrittenboolean removeCustomEffect(PotionEffectType type)
type
- the potion effect type to removeboolean hasCustomEffect(PotionEffectType type)
type
- the potion effect type to check forvoid clearCustomEffects()
Color getColor()
void setColor(Color color)
color
- cloud colorProjectileSource getSource()
ProjectileSource
that threw the LingeringPotionvoid setSource(ProjectileSource source)
source
- the ProjectileSource
that threw the LingeringPotionCopyright © 2018. All rights reserved.