public interface ThrownPotion extends Projectile
Modifier and Type | Method and Description |
---|---|
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.
|
_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooter
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
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 ItemStackCopyright © 2015. All rights reserved.