CommandSender
, Entity
, Explosive
, Metadatable
, Nameable
, Permissible
, PersistentDataHolder
, ServerOperator
public interface TNTPrimed extends Explosive
Entity.Spigot
Modifier and Type | Method | 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.
|
void |
setFuseTicks(int fuseTicks) |
Set the number of ticks until the TNT blows up after being primed.
|
getName, sendMessage, sendMessage
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, 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, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getYield, isIncendiary, setIsIncendiary, setYield
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
getPersistentDataContainer
isOp, setOp
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()
.
Copyright © 2020. All rights reserved.