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
|
Entity |
getSource()
Gets the source of this primed TNT.
|
void |
setFuseTicks(int fuseTicks)
Set the number of ticks until the TNT blows up after being primed.
|
getYield, isIncendiary, setIsIncendiary, setYield
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
void setFuseTicks(int fuseTicks)
fuseTicks
- The fuse ticksint getFuseTicks()
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. If the source Entity becomes invalidated for any reason, such being removed from the world, the returned value will be null.
Copyright © 2016. All rights reserved.