|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TNTPrimed
Represents a Primed TNT.
Method Summary | |
---|---|
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. |
Methods inherited from interface org.bukkit.entity.Explosive |
---|
getYield, isIncendiary, setIsIncendiary, setYield |
Methods inherited from interface org.bukkit.entity.Entity |
---|
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport |
Methods inherited from interface org.bukkit.metadata.Metadatable |
---|
getMetadata, hasMetadata, removeMetadata, setMetadata |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |