Commits

Martoph authored and md_5 committed b56e8160a95
#519: Add ArrowBodyCountChangeEvent
No tags

src/main/java/org/bukkit/entity/LivingEntity.java

Modified
185 185 */
186 186 public int getMaximumAir();
187 187
188 188 /**
189 189 * Sets the maximum amount of air the living entity can have, in ticks.
190 190 *
191 191 * @param ticks maximum amount of air
192 192 */
193 193 public void setMaximumAir(int ticks);
194 194
195 + /**
196 + * Gets the time in ticks until the next arrow leaves the entity's body.
197 + *
198 + * @return ticks until arrow leaves
199 + */
200 + public int getArrowCooldown();
201 +
202 + /**
203 + * Sets the time in ticks until the next arrow leaves the entity's body.
204 + *
205 + * @param ticks time until arrow leaves
206 + */
207 + public void setArrowCooldown(int ticks);
208 +
209 + /**
210 + * Gets the amount of arrows in an entity's body.
211 + *
212 + * @return amount of arrows in body
213 + */
214 + public int getArrowsInBody();
215 +
216 + /**
217 + * Set the amount of arrows in the entity's body.
218 + *
219 + * @param count amount of arrows in entity's body
220 + */
221 + public void setArrowsInBody(int count);
222 +
195 223 /**
196 224 * Returns the living entity's current maximum no damage ticks.
197 225 * <p>
198 226 * This is the maximum duration in which the living entity will not take
199 227 * damage.
200 228 *
201 229 * @return maximum no damage ticks
202 230 */
203 231 public int getMaximumNoDamageTicks();
204 232

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut