blob: f88be2fffa0ba38c6232da0df393119128c03e73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
package org.bukkit.entity;
import java.util.List;
import org.bukkit.Color;
import org.bukkit.Particle;
import org.bukkit.potion.PotionData;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.projectiles.ProjectileSource;
/**
* Represents an area effect cloud which will imbue a potion effect onto
* entities which enter it.
*/
public interface AreaEffectCloud extends Entity {
/**
* Gets the duration which this cloud will exist for (in ticks).
*
* @return cloud duration
*/
int getDuration();
/**
* Sets the duration which this cloud will exist for (in ticks).
*
* @param duration cloud duration
*/
void setDuration(int duration);
/**
* Gets the time which an entity has to be exposed to the cloud before the
* effect is applied.
*
* @return wait time
*/
int getWaitTime();
/**
* Sets the time which an entity has to be exposed to the cloud before the
* effect is applied.
*
* @param waitTime wait time
*/
void setWaitTime(int waitTime);
/**
* Gets the time that an entity will be immune from subsequent exposure.
*
* @return reapplication delay
*/
int getReapplicationDelay();
/**
* Sets the time that an entity will be immune from subsequent exposure.
*
* @param delay reapplication delay
*/
void setReapplicationDelay(int delay);
/**
* Gets the amount that the duration of this cloud will decrease by when it
* applies an effect to an entity.
*
* @return duration on use delta
*/
int getDurationOnUse();
/**
* Sets the amount that the duration of this cloud will decrease by when it
* applies an effect to an entity.
*
* @param duration duration on use delta
*/
void setDurationOnUse(int duration);
/**
* Gets the initial radius of the cloud.
*
* @return radius
*/
float getRadius();
/**
* Sets the initial radius of the cloud.
*
* @param radius radius
*/
void setRadius(float radius);
/**
* Gets the amount that the radius of this cloud will decrease by when it
* applies an effect to an entity.
*
* @return radius on use delta
*/
float getRadiusOnUse();
/**
* Sets the amount that the radius of this cloud will decrease by when it
* applies an effect to an entity.
*
* @param radius radius on use delta
*/
void setRadiusOnUse(float radius);
/**
* Gets the amount that the radius of this cloud will decrease by each tick.
*
* @return radius per tick delta
*/
float getRadiusPerTick();
/**
* Gets the amount that the radius of this cloud will decrease by each tick.
*
* @param radius per tick delta
*/
void setRadiusPerTick(float radius);
/**
* Gets the particle which this cloud will be composed of
*
* @return particle the set particle type
*/
Particle getParticle();
/**
* Sets the particle which this cloud will be composed of
*
* @param particle the new particle type
*/
void setParticle(Particle particle);
/**
* Sets the underlying potion data
*
* @param data PotionData to set the base potion state to
*/
void setBasePotionData(PotionData data);
/**
* Returns the potion data about the base potion
*
* @return a PotionData object
*/
PotionData getBasePotionData();
/**
* Checks for the presence of custom potion effects.
*
* @return true if custom potion effects are applied
*/
boolean hasCustomEffects();
/**
* Gets an immutable list containing all custom potion effects applied to
* this cloud.
* <p>
* Plugins should check that hasCustomEffects() returns true before calling
* this method.
*
* @return the immutable list of custom potion effects
*/
List<PotionEffect> getCustomEffects();
/**
* Adds a custom potion effect to this cloud.
*
* @param effect the potion effect to add
* @param overwrite true if any existing effect of the same type should be
* overwritten
* @return true if the effect was added as a result of this call
*/
boolean addCustomEffect(PotionEffect effect, boolean overwrite);
/**
* Removes a custom potion effect from this cloud.
*
* @param type the potion effect type to remove
* @return true if the an effect was removed as a result of this call
*/
boolean removeCustomEffect(PotionEffectType type);
/**
* Checks for a specific custom potion effect type on this cloud.
*
* @param type the potion effect type to check for
* @return true if the potion has this effect
*/
boolean hasCustomEffect(PotionEffectType type);
/**
* Removes all custom potion effects from this cloud.
*/
void clearCustomEffects();
/**
* Gets the color of this cloud. Will be applied as a tint to its particles.
*
* @return cloud color
*/
Color getColor();
/**
* Sets the color of this cloud. Will be applied as a tint to its particles.
*
* @param color cloud color
*/
void setColor(Color color);
/**
* Retrieve the original source of this cloud.
*
* @return the {@link ProjectileSource} that threw the LingeringPotion
*/
public ProjectileSource getSource();
/**
* Set the original source of this cloud.
*
* @param source the {@link ProjectileSource} that threw the LingeringPotion
*/
public void setSource(ProjectileSource source);
}
|