org.bukkit.entity
Interface Explosive

All Superinterfaces:
Entity, Metadatable
All Known Subinterfaces:
Fireball, LargeFireball, SmallFireball, TNTPrimed, WitherSkull

public interface Explosive
extends Entity

A representation of an explosive entity


Method Summary
 float getYield()
          Return the radius or yield of this explosive's explosion
 boolean isIncendiary()
          Return whether or not this explosive creates a fire when exploding
 void setIsIncendiary(boolean isIncendiary)
          Set whether or not this explosive's explosion causes fire
 void setYield(float yield)
          Set the radius affected by this explosive's explosion
 
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

setYield

void setYield(float yield)
Set the radius affected by this explosive's explosion

Parameters:
yield - The explosive yield

getYield

float getYield()
Return the radius or yield of this explosive's explosion

Returns:
the radius of blocks affected

setIsIncendiary

void setIsIncendiary(boolean isIncendiary)
Set whether or not this explosive's explosion causes fire

Parameters:
isIncendiary - Whether it should cause fire

isIncendiary

boolean isIncendiary()
Return whether or not this explosive creates a fire when exploding

Returns:
true if the explosive creates fire, false otherwise


Copyright © 2013. All Rights Reserved.