Commits
Martoph authored and md_5 committed cdef8fc72fa
8 8 | import org.apache.commons.lang.Validate; |
9 9 | import org.bukkit.Material; |
10 10 | import org.bukkit.craftbukkit.CraftServer; |
11 11 | import org.bukkit.craftbukkit.inventory.CraftItemStack; |
12 12 | import org.bukkit.craftbukkit.potion.CraftPotionUtil; |
13 13 | import org.bukkit.entity.EntityType; |
14 14 | import org.bukkit.entity.ThrownPotion; |
15 15 | import org.bukkit.inventory.ItemStack; |
16 16 | import org.bukkit.potion.PotionEffect; |
17 17 | |
18 - | public class CraftThrownPotion extends CraftProjectile implements ThrownPotion { |
18 + | public class CraftThrownPotion extends CraftThrowableProjectile implements ThrownPotion { |
19 19 | public CraftThrownPotion(CraftServer server, EntityPotion entity) { |
20 20 | super(server, entity); |
21 21 | } |
22 22 | |
23 23 | |
24 24 | public Collection<PotionEffect> getEffects() { |
25 25 | ImmutableList.Builder<PotionEffect> builder = ImmutableList.builder(); |
26 26 | for (MobEffect effect : PotionUtil.getMobEffects(getHandle().getItemRaw())) { |
27 27 | builder.add(CraftPotionUtil.toBukkit(effect)); |
28 28 | } |