public interface EnderSignal extends Entity
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getDespawnTimer()
Gets the amount of time this entity has been alive (in ticks).
|
boolean |
getDropItem()
Gets if the EnderSignal should drop an item on death.
|
Location |
getTargetLocation()
Get the location this EnderSignal is moving towards.
|
void |
setDespawnTimer(int timer)
Set how long this entity has been alive (in ticks).
|
void |
setDropItem(boolean drop)
Sets if the EnderSignal should drop an item on death; or if it should
shatter.
|
void |
setTargetLocation(Location location)
Set the
Location this EnderSignal is moving towards. |
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, 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, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNameLocation getTargetLocation()
Location this EnderSignal is moving towards.void setTargetLocation(Location location)
Location this EnderSignal is moving towards.
getDropItem() resets to
a random value and the despawn timer gets set back to 0.location - the new target locationboolean getDropItem()
true, it will drop an item. If false, it will shatter.void setDropItem(boolean drop)
drop - true if the EnderSignal should drop an item on death, or
false if it should shatter.int getDespawnTimer()
void setDespawnTimer(int timer)
timer - how long (in ticks) this EnderSignal has been alive.