Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
ThrownPotion.java
1 package org.bukkit.entity;
2 
3 import java.util.Collection;
4 
7 
8 /**
9  * Represents a thrown potion bottle
10  */
11 public interface ThrownPotion extends Projectile {
12 
13  /**
14  * Returns the effects that are applied by this potion.
15  *
16  * @return The potion effects
17  */
18  public Collection<PotionEffect> getEffects();
19 
20  /**
21  * Returns a copy of the ItemStack for this thrown potion.
22  * <p>
23  * Altering this copy will not alter the thrown potion directly. If you
24  * want to alter the thrown potion, you must use the {@link
25  * #setItem(ItemStack) setItemStack} method.
26  *
27  * @return A copy of the ItemStack for this thrown potion.
28  */
29  public ItemStack getItem();
30 
31  /**
32  * Set the ItemStack for this thrown potion.
33  * <p>
34  * The ItemStack must be a potion, otherwise an exception is thrown.
35  *
36  * @param item New ItemStack
37  */
38  public void setItem(ItemStack item);
39 }
void setItem(ItemStack item)
Collection< PotionEffect > getEffects()