Package org.bukkit.entity
Interface EnderSignal
- All Superinterfaces:
- CommandSender,- Entity,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- ServerOperator
Represents an EnderSignal, which is created upon throwing an ender eye.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionintGets the amount of time this entity has been alive (in ticks).booleanGets if the EnderSignal should drop an item on death.
 Iftrue, it will drop an item.getItem()Get theItemStackto be displayed while in the air and to be dropped on death.Get the location this EnderSignal is moving towards.voidsetDespawnTimer(int timer) Set how long this entity has been alive (in ticks).voidsetDropItem(boolean drop) Sets if the EnderSignal should drop an item on death; or if it should shatter.voidSet theItemStackto be displayed while in the air and to be dropped on death.voidsetTargetLocation(Location location) Set theLocationthis EnderSignal is moving towards.Methods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface 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, teleportMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getTargetLocationGet the location this EnderSignal is moving towards.- Returns:
- the Locationthis EnderSignal is moving towards.
 
- 
setTargetLocationSet theLocationthis 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.- Parameters:
- location- the new target location
 
- 
getDropItemboolean getDropItem()Gets if the EnderSignal should drop an item on death.
 Iftrue, it will drop an item. Iffalse, it will shatter.- Returns:
- true if the EnderSignal will drop an item on death, or false if it will shatter
 
- 
setDropItemvoid setDropItem(boolean drop) Sets if the EnderSignal should drop an item on death; or if it should shatter.- Parameters:
- drop- true if the EnderSignal should drop an item on death, or false if it should shatter.
 
- 
getItemGet theItemStackto be displayed while in the air and to be dropped on death.- Returns:
- the item stack
 
- 
setItemSet theItemStackto be displayed while in the air and to be dropped on death.- Parameters:
- item- the item to set. If null, resets to the default eye of ender
 
- 
getDespawnTimerint getDespawnTimer()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.- Returns:
- the number of ticks this EnderSignal has been alive.
 
- 
setDespawnTimervoid setDespawnTimer(int timer) Set how long this entity has been alive (in ticks).
 When this number is greater than 80, it will despawn on the next tick.- Parameters:
- timer- how long (in ticks) this EnderSignal has been alive.
 
 
-