接口 TippedArrow
- 所有超级接口:
Arrow
,CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,Projectile
,ServerOperator
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Arrow
Arrow.PickupStatus
-
方法概要
修饰符和类型方法说明boolean
addCustomEffect
(PotionEffect effect, boolean overwrite) Adds a custom potion effect to this arrow.void
Removes all custom potion effects from this arrow.Returns the potion data about the base potiongetColor()
Gets the color of this arrow.Gets an immutable list containing all custom potion effects applied to this arrow.boolean
Checks for a specific custom potion effect type on this arrow.boolean
Checks for the presence of custom potion effects.boolean
Removes a custom potion effect from this arrow.void
setBasePotionData
(PotionData data) Sets the underlying potion datavoid
Sets the color of this arrow.从接口继承的方法 org.bukkit.entity.Arrow
getAttachedBlock, getKnockbackStrength, getPickupStatus, isCritical, isInBlock, setCritical, setKnockbackStrength, setPickupStatus
从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.entity.Projectile
doesBounce, getShooter, setBounce, setShooter
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
setBasePotionData
Sets the underlying potion data- 参数:
data
- PotionData to set the base potion state to
-
getBasePotionData
PotionData getBasePotionData()Returns the potion data about the base potion- 返回:
- a PotionData object
-
getColor
Color getColor()Gets the color of this arrow.- 返回:
- arrow color
-
setColor
Sets the color of this arrow. Will be applied as a tint to its particles.- 参数:
color
- arrow color
-
hasCustomEffects
boolean hasCustomEffects()Checks for the presence of custom potion effects.- 返回:
- true if custom potion effects are applied
-
getCustomEffects
List<PotionEffect> getCustomEffects()Gets an immutable list containing all custom potion effects applied to this arrow.Plugins should check that hasCustomEffects() returns true before calling this method.
- 返回:
- the immutable list of custom potion effects
-
addCustomEffect
Adds a custom potion effect to this arrow.- 参数:
effect
- the potion effect to addoverwrite
- true if any existing effect of the same type should be overwritten- 返回:
- true if the effect was added as a result of this call
-
removeCustomEffect
Removes a custom potion effect from this arrow.- 参数:
type
- the potion effect type to remove- 返回:
- true if the an effect was removed as a result of this call
- 抛出:
IllegalArgumentException
- if this operation would leave the Arrow in a state with no Custom Effects and PotionType.UNCRAFTABLE
-
hasCustomEffect
Checks for a specific custom potion effect type on this arrow.- 参数:
type
- the potion effect type to check for- 返回:
- true if the potion has this effect
-
clearCustomEffects
void clearCustomEffects()Removes all custom potion effects from this arrow.- 抛出:
IllegalArgumentException
- if this operation would leave the Arrow in a state with no Custom Effects and PotionType.UNCRAFTABLE
-