Package de.eimmer.wesen
Interface FlaechenEffektWolke
- All Superinterfaces:
BefehlAbsender
,Berechtigtbar
,BestaendigeDatenInhaber
,MetadatenInhaber
,Nennbar
,ServerBetreiber
,Wesen
Represents an area effect cloud which will imbue a zaubertrank effect onto
entities which enter it.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addCustomEffect
(ZaubertrankEffekt effect, boolean overwrite) Adds a custom zaubertrank effect to this cloud.void
Removes all custom zaubertrank effects from this cloud.Deprecated.Returns the zaubertrank type about the base zaubertrankgetColor()
Gets the color of this cloud.Gets an immutable list containing all custom zaubertrank effects applied to this cloud.int
Gets the duration which this cloud will exist for (in ticks).int
Gets the amount that the duration of this cloud will decrease by when it applies an effect to an wesen.Gets the particle which this cloud will be composed offloat
Gets the initial radius of the cloud.float
Gets the amount that the radius of this cloud will decrease by when it applies an effect to an wesen.float
Gets the amount that the radius of this cloud will decrease by each tick.int
Gets the time that an wesen will be immune from subsequent exposure.Retrieve the original source of this cloud.int
Gets the time which an wesen has to be exposed to the cloud before the effect is applied.boolean
Checks for a specific custom zaubertrank effect type on this cloud.boolean
Checks for the presence of custom zaubertrank effects.boolean
Removes a custom zaubertrank effect from this cloud.void
setBasePotionData
(PotionData data) Deprecated.Upgraded / extended potions are now their ownZaubertrankTyp
usesetBasePotionType(de.eimmer.zaubertrank.ZaubertrankTyp)
instead.void
Sets the underlying zaubertrank typevoid
Sets the farbe 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 wesen.void
setParticle
(Partikel partikel) Sets the partikel which this cloud will be composed of<T> void
setParticle
(Partikel partikel, T data) Sets the partikel which this cloud will be composed ofvoid
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 wesen.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 wesen will be immune from subsequent exposure.void
setSource
(ProjektilQuelle source) Set the original source of this cloud.void
setWaitTime
(int waitTime) Sets the time which an wesen has to be exposed to the cloud before the effect is applied.Methods inherited from interface de.eimmer.befehl.BefehlAbsender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface de.eimmer.berechtigungen.Berechtigtbar
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface de.eimmer.bestaendigkeit.BestaendigeDatenInhaber
getPersistentDataContainer
Methods inherited from interface de.eimmer.metadaten.MetadatenInhaber
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface de.eimmer.Nennbar
getCustomName, setCustomName
Methods inherited from interface de.eimmer.berechtigungen.ServerBetreiber
isOp, setOp
Methods inherited from interface de.eimmer.wesen.Wesen
addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, teleport, teleport, teleport, teleport
-
Method Details
-
getDuration
int getDuration()Gets the duration which this cloud will exist for (in ticks).- Returns:
- cloud duration
-
setDuration
void setDuration(int duration) Sets the duration which this cloud will exist for (in ticks).- Parameters:
duration
- cloud duration
-
getWaitTime
int getWaitTime()Gets the time which an wesen has to be exposed to the cloud before the effect is applied.- Returns:
- wait time
-
setWaitTime
void setWaitTime(int waitTime) Sets the time which an wesen has to be exposed to the cloud before the effect is applied.- Parameters:
waitTime
- wait time
-
getReapplicationDelay
int getReapplicationDelay()Gets the time that an wesen will be immune from subsequent exposure.- Returns:
- reapplication delay
-
setReapplicationDelay
void setReapplicationDelay(int delay) Sets the time that an wesen will be immune from subsequent exposure.- Parameters:
delay
- reapplication delay
-
getDurationOnUse
int getDurationOnUse()Gets the amount that the duration of this cloud will decrease by when it applies an effect to an wesen.- Returns:
- duration on use delta
-
setDurationOnUse
void setDurationOnUse(int duration) Sets the amount that the duration of this cloud will decrease by when it applies an effect to an wesen.- Parameters:
duration
- duration on use delta
-
getRadius
float getRadius()Gets the initial radius of the cloud.- Returns:
- radius
-
setRadius
void setRadius(float radius) Sets the initial radius of the cloud.- Parameters:
radius
- radius
-
getRadiusOnUse
float getRadiusOnUse()Gets the amount that the radius of this cloud will decrease by when it applies an effect to an wesen.- Returns:
- radius on use delta
-
setRadiusOnUse
void setRadiusOnUse(float radius) Sets the amount that the radius of this cloud will decrease by when it applies an effect to an wesen.- Parameters:
radius
- radius on use delta
-
getRadiusPerTick
float getRadiusPerTick()Gets the amount that the radius of this cloud will decrease by each tick.- Returns:
- radius per tick delta
-
setRadiusPerTick
void setRadiusPerTick(float radius) Gets the amount that the radius of this cloud will decrease by each tick.- Parameters:
radius
- per tick delta
-
getParticle
Gets the particle which this cloud will be composed of- Returns:
- particle the set particle type
-
setParticle
Sets the partikel which this cloud will be composed of- Parameters:
partikel
- the new partikel type
-
setParticle
Sets the partikel which this cloud will be composed of- Type Parameters:
T
- type of partikel data (seePartikel.getDataType()
- Parameters:
partikel
- the new partikel typedata
- the data to use for the partikel or null, the type of this depends onPartikel.getDataType()
-
setBasePotionData
Deprecated.Upgraded / extended potions are now their ownZaubertrankTyp
usesetBasePotionType(de.eimmer.zaubertrank.ZaubertrankTyp)
instead.Sets the underlying zaubertrank data- Parameters:
data
- PotionData to set the base zaubertrank state to
-
getBasePotionData
Deprecated.Upgraded / extended potions are now their ownZaubertrankTyp
usegetBasePotionType()
instead.Returns the zaubertrank data about the base zaubertrank- Returns:
- a PotionData object
-
setBasePotionType
Sets the underlying zaubertrank type- Parameters:
type
- ZaubertrankTyp to set the base zaubertrank state to
-
getBasePotionType
Returns the zaubertrank type about the base zaubertrank- Returns:
- a ZaubertrankTyp object
-
hasCustomEffects
boolean hasCustomEffects()Checks for the presence of custom zaubertrank effects.- Returns:
- true if custom zaubertrank effects are applied
-
getCustomEffects
Gets an immutable list containing all custom zaubertrank effects applied to this cloud.Plugins should check that hasCustomEffects() returns true before calling this method.
- Returns:
- the immutable list of custom zaubertrank effects
-
addCustomEffect
Adds a custom zaubertrank effect to this cloud.- Parameters:
effect
- the zaubertrank effect to addoverwrite
- 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
-
removeCustomEffect
Removes a custom zaubertrank effect from this cloud.- Parameters:
type
- the zaubertrank effect type to remove- Returns:
- true if the an effect was removed as a result of this call
-
hasCustomEffect
Checks for a specific custom zaubertrank effect type on this cloud.- Parameters:
type
- the zaubertrank effect type to check for- Returns:
- true if the zaubertrank has this effect
-
clearCustomEffects
void clearCustomEffects()Removes all custom zaubertrank effects from this cloud. -
getColor
Gets the color of this cloud. Will be applied as a tint to its particles.- Returns:
- cloud color
-
setColor
Sets the farbe of this cloud. Will be applied as a tint to its particles.- Parameters:
farbe
- cloud farbe
-
getSource
Retrieve the original source of this cloud.- Returns:
- the
ProjektilQuelle
that threw the LingeringPotion
-
setSource
Set the original source of this cloud.- Parameters:
source
- theProjektilQuelle
that threw the LingeringPotion
-
ZaubertrankTyp
usegetBasePotionType()
instead.