|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThrownPotion
Represents a thrown potion bottle
Method Summary | |
---|---|
Collection<PotionEffect> |
getEffects()
Returns the effects that are applied by this potion. |
ItemStack |
getItem()
Returns a copy of the ItemStack for this thrown potion. |
void |
setItem(ItemStack item)
Set the ItemStack for this thrown potion. |
Methods inherited from interface org.bukkit.entity.Projectile |
---|
doesBounce, getShooter, setBounce, setShooter |
Methods inherited from interface org.bukkit.entity.Entity |
---|
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport |
Methods inherited from interface org.bukkit.metadata.Metadatable |
---|
getMetadata, hasMetadata, removeMetadata, setMetadata |
Method Detail |
---|
Collection<PotionEffect> getEffects()
ItemStack getItem()
Altering this copy will not alter the thrown potion directly. If you
want to alter the thrown potion, you must use the setItemStack
method.
void setItem(ItemStack item)
The ItemStack must be a potion, otherwise an exception is thrown.
item
- New ItemStack
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |