public interface EnderSignal extends Entity
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
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.
If true , it will drop an item. |
@NotNull ItemStack |
getItem()
Get the
ItemStack to be displayed while in the air and to be
dropped on death. |
@NotNull 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 |
setItem(@Nullable ItemStack item)
Set the
ItemStack to be displayed while in the air and to be
dropped on death. |
void |
setTargetLocation(@NotNull Location location)
Set the
Location this EnderSignal is moving towards. |
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage
audience, audience, clearTitle, empty, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound, toAudience
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
customName, customName, getCustomName, setCustomName
getPersistentDataContainer
@NotNull @NotNull Location getTargetLocation()
Location
this EnderSignal is moving towards.void setTargetLocation(@NotNull @NotNull 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.@NotNull @NotNull ItemStack getItem()
ItemStack
to be displayed while in the air and to be
dropped on death.void setItem(@Nullable @Nullable ItemStack item)
ItemStack
to 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 enderint getDespawnTimer()
void setDespawnTimer(int timer)
timer
- how long (in ticks) this EnderSignal has been alive.Copyright © 2021. All rights reserved.