接口 Projectile
- 所有超级接口:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,ServerOperator
- 所有已知子接口:
Arrow
,DragonFireball
,Egg
,EnderPearl
,Fireball
,Fish
,FishHook
,LargeFireball
,LingeringPotion
,LlamaSpit
,ShulkerBullet
,SmallFireball
,Snowball
,SpectralArrow
,SplashPotion
,ThrownExpBottle
,ThrownPotion
,TippedArrow
,WitherSkull
Represents a shootable entity.
-
方法概要
修饰符和类型方法说明boolean
Determine if this projectile should bounce or not when it hits.Retrieve the shooter of this projectile.void
setBounce
(boolean doesBounce) Set whether or not this projectile should bounce or not when it hits something.void
setShooter
(ProjectileSource source) Set the shooter of this projectile.从接口继承的方法 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.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
getShooter
ProjectileSource getShooter()Retrieve the shooter of this projectile.- 返回:
- the
ProjectileSource
that shot this projectile
-
setShooter
Set the shooter of this projectile.- 参数:
source
- theProjectileSource
that shot this projectile
-
doesBounce
boolean doesBounce()Determine if this projectile should bounce or not when it hits.If a small fireball does not bounce it will set the target on fire.
- 返回:
- true if it should bounce.
-
setBounce
void setBounce(boolean doesBounce) Set whether or not this projectile should bounce or not when it hits something.- 参数:
doesBounce
- whether or not it should bounce.
-