public interface TNTPrimed extends Explosive
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
int |
getFuseTicks()
Retrieve the number of ticks until the explosion of this TNTPrimed
entity
|
@Nullable Entity |
getSource()
Gets the source of this primed TNT.
|
default Location |
getSourceLoc()
Deprecated.
replaced by
Entity.getOrigin() |
void |
setFuseTicks(int fuseTicks)
Set the number of ticks until the TNT blows up after being primed.
|
void |
setSource(@Nullable Entity source)
Sets the source of this primed TNT.
|
getYield, isIncendiary, setIsIncendiary, setYield
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
void setFuseTicks(int fuseTicks)
fuseTicks
- The fuse ticksint getFuseTicks()
@Nullable @Nullable Entity getSource()
World.spawn(Location, Class)
method, for example.)
The source will become null if the chunk this primed TNT is in is
unloaded then reloaded. The source entity may be invalid if for example
it has since died or been unloaded. Callers should check
Entity.isValid()
.
void setSource(@Nullable @Nullable Entity source)
Must be instance of LivingEntity
otherwise will
be set to null. The parameter is typed Entity
to be consistent with getSource()
method.
source
- the source of this primed TNT@Deprecated default Location getSourceLoc()
Entity.getOrigin()
Copyright © 2021. All rights reserved.