Bukkit-API
1.7.9-R0.2
The inofficial Bukkit-API
|
Public Member Functions | |
void | setFuseTicks (int fuseTicks) |
int | getFuseTicks () |
Entity | getSource () |
![]() | |
void | setYield (float yield) |
float | getYield () |
void | setIsIncendiary (boolean isIncendiary) |
boolean | isIncendiary () |
![]() | |
Location | getLocation () |
Location | getLocation (Location loc) |
void | setVelocity (Vector velocity) |
Vector | getVelocity () |
boolean | isOnGround () |
World | getWorld () |
boolean | teleport (Location location) |
boolean | teleport (Location location, TeleportCause cause) |
boolean | teleport (Entity destination) |
boolean | teleport (Entity destination, TeleportCause cause) |
List< org.bukkit.entity.Entity > | getNearbyEntities (double x, double y, double z) |
int | getEntityId () |
int | getFireTicks () |
int | getMaxFireTicks () |
void | setFireTicks (int ticks) |
void | remove () |
boolean | isDead () |
boolean | isValid () |
Server | getServer () |
abstract Entity | getPassenger () |
abstract boolean | setPassenger (Entity passenger) |
abstract boolean | isEmpty () |
abstract boolean | eject () |
float | getFallDistance () |
void | setFallDistance (float distance) |
void | setLastDamageCause (EntityDamageEvent event) |
EntityDamageEvent | getLastDamageCause () |
UUID | getUniqueId () |
int | getTicksLived () |
void | setTicksLived (int value) |
void | playEffect (EntityEffect type) |
EntityType | getType () |
boolean | isInsideVehicle () |
boolean | leaveVehicle () |
Entity | getVehicle () |
![]() | |
void | setMetadata (String metadataKey, MetadataValue newMetadataValue) |
List< MetadataValue > | getMetadata (String metadataKey) |
boolean | hasMetadata (String metadataKey) |
void | removeMetadata (String metadataKey, Plugin owningPlugin) |
Represents a Primed TNT.
Definition at line 6 of file TNTPrimed.java.
int org.bukkit.entity.TNTPrimed.getFuseTicks | ( | ) |
Entity org.bukkit.entity.TNTPrimed.getSource | ( | ) |
Gets the source of this primed TNT. The source is the entity responsible for the creation of this primed TNT. (I.E. player ignites TNT with flint and steel.) Take note that this can be null if there is no suitable source. (created by the org.bukkit.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.
void org.bukkit.entity.TNTPrimed.setFuseTicks | ( | int | fuseTicks | ) |
Set the number of ticks until the TNT blows up after being primed.
fuseTicks | The fuse ticks |