接口 EnderSignal
- 所有超级接口:
- CommandSender,- Entity,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- ServerOperator
代表抛出的末影之眼.
- 
嵌套类概要从接口继承的嵌套类/接口 org.bukkit.entity.EntityEntity.Spigot
- 
方法概要修饰符和类型方法说明int获取末影之眼已在空气漂浮的时间 (单位为tick).boolean获取末影之眼最终是否会掉落为物品.
 如果为true, 将为掉落为物品, 反之它会破碎并湮灭.getItem()Get theItemStackto be displayed while in the air and to be dropped on death.获取末影之眼移向的位置.voidsetDespawnTimer(int timer) 设置末影之眼已在空气漂浮的时间 (单位为tick).voidsetDropItem(boolean drop) 设置末影之眼最终是否会掉落为物品, 亦或是湮灭于空气中.voidSet theItemStackto be displayed while in the air and to be dropped on death.voidsetTargetLocation(@NotNull Location location) 设置末影之眼移向的位置.从接口继承的方法 org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessage从接口继承的方法 org.bukkit.entity.EntityaddPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport从接口继承的方法 org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadata从接口继承的方法 org.bukkit.NameablegetCustomName, setCustomName从接口继承的方法 org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment从接口继承的方法 org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer从接口继承的方法 org.bukkit.permissions.ServerOperatorisOp, setOp
- 
方法详细资料- 
getTargetLocation获取末影之眼移向的位置.原文:Get the location this EnderSignal is moving towards. - 返回:
- 末影之眼移向的位置
 
- 
setTargetLocation设置末影之眼移向的位置.
 当设置了新的目标地点时,getDropItem()将被重置为一个随机值 , 其消失时间将重置为0.原文:Set the Locationthis EnderSignal is moving towards.
 When setting a new target location, thegetDropItem()resets to a random value and the despawn timer gets set back to 0.- 参数:
- location- 新目标位置
 
- 
getDropItemboolean getDropItem()获取末影之眼最终是否会掉落为物品.
 如果为true, 将为掉落为物品, 反之它会破碎并湮灭.原文:Gets if the EnderSignal should drop an item on death. 
 Iftrue, it will drop an item. Iffalse, it will shatter.- 返回:
- 末影之眼最终是否会掉落为物品
 
- 
setDropItemvoid setDropItem(boolean drop) 设置末影之眼最终是否会掉落为物品, 亦或是湮灭于空气中.原文:Sets if the EnderSignal should drop an item on death; or if it should shatter. - 参数:
- drop- 末影之眼最终是否会掉落为物品
 
- 
getItemGet theItemStackto be displayed while in the air and to be dropped on death.- 返回:
- the item stack
 
- 
setItemSet theItemStackto be displayed while in the air and to be dropped on death.- 参数:
- item- the item to set. If null, resets to the default eye of ender
 
- 
getDespawnTimerint getDespawnTimer()获取末影之眼已在空气漂浮的时间 (单位为tick).
 当此值大于80时, 此实体会在下一tick消失, 是否掉落为物品取决于getDropItem().原文:Gets the amount of time this entity has been alive (in ticks). 
 When this number is greater than 80, it will despawn on the next tick.- 返回:
- 此末影之眼实体已存活时间
 
- 
setDespawnTimervoid setDespawnTimer(int timer) 设置末影之眼已在空气漂浮的时间 (单位为tick).
 当此值大于80时, 此实体会在下一tick消失, 是否掉落为物品取决于getDropItem().原文:Set how long this entity has been alive (in ticks). 
 When this number is greater than 80, it will despawn on the next tick.- 参数:
- timer- 此末影之眼实体已存活时间
 
 
-