Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.entity.Projectile Interface Reference

Represents a shootable entity. More...

+ Inheritance diagram for org.bukkit.entity.Projectile:
+ Collaboration diagram for org.bukkit.entity.Projectile:

Public Member Functions

LivingEntity getShooter ()
 Retrieve the shooter of this projectile.
 
void setShooter (LivingEntity shooter)
 Set the shooter of this projectile.
 
boolean doesBounce ()
 Determine if this projectile should bounce or not when it hits.
 
void setBounce (boolean doesBounce)
 Set whether or not this projectile should bounce or not when it hits something.
 
- Public Member Functions inherited from org.bukkit.entity.Entity
Location getLocation ()
 Gets the entity's current position.
 
Location getLocation (Location loc)
 Stores the entity's current position in the provided Location object.
 
void setVelocity (Vector velocity)
 Sets this entity's velocity.
 
Vector getVelocity ()
 Gets this entity's current velocity.
 
World getWorld ()
 Gets the current world this entity resides in.
 
boolean teleport (Location location)
 Teleports this entity to the given location.
 
boolean teleport (Location location, TeleportCause cause)
 Teleports this entity to the given location.
 
boolean teleport (Entity destination)
 Teleports this entity to the target Entity.
 
boolean teleport (Entity destination, TeleportCause cause)
 Teleports this entity to the target Entity.
 
List< org.bukkit.entity.EntitygetNearbyEntities (double x, double y, double z)
 Returns a list of entities within a bounding box centered around this entity.
 
int getEntityId ()
 Returns a unique id for this entity.
 
int getFireTicks ()
 Returns the entity's current fire ticks (ticks before the entity stops being on fire).
 
int getMaxFireTicks ()
 Returns the entity's maximum fire ticks.
 
void setFireTicks (int ticks)
 Sets the entity's current fire ticks (ticks before the entity stops being on fire).
 
void remove ()
 Mark the entity's removal.
 
boolean isDead ()
 Returns true if this entity has been marked for removal.
 
boolean isValid ()
 Returns false if the entity has died or been despawned for some other reason.
 
Server getServer ()
 Gets the Server that contains this Entity.
 
abstract Entity getPassenger ()
 Gets the primary passenger of a vehicle.
 
abstract boolean setPassenger (Entity passenger)
 Set the passenger of a vehicle.
 
abstract boolean isEmpty ()
 Check if a vehicle has passengers.
 
abstract boolean eject ()
 Eject any passenger.
 
float getFallDistance ()
 Returns the distance this entity has fallen.
 
void setFallDistance (float distance)
 Sets the fall distance for this entity.
 
void setLastDamageCause (EntityDamageEvent event)
 Record the last EntityDamageEvent inflicted on this entity.
 
EntityDamageEvent getLastDamageCause ()
 Retrieve the last EntityDamageEvent inflicted on this entity.
 
UUID getUniqueId ()
 Returns a unique and persistent id for this entity.
 
int getTicksLived ()
 Gets the amount of ticks this entity has lived for.
 
void setTicksLived (int value)
 Sets the amount of ticks this entity has lived for.
 
void playEffect (EntityEffect type)
 Performs the specified EntityEffect for this entity.
 
EntityType getType ()
 Get the type of the entity.
 
boolean isInsideVehicle ()
 Returns whether this entity is inside a vehicle.
 
boolean leaveVehicle ()
 Leave the current vehicle.
 
Entity getVehicle ()
 Get the vehicle that this player is inside.
 

Detailed Description

Represents a shootable entity.

Definition at line 8 of file Projectile.java.

Member Function Documentation

boolean org.bukkit.entity.Projectile.doesBounce ( )

Determine if this projectile should bounce or not when it hits.

If a small fireball does not bounce it will set the target on fire.

Returns
true if it should bounce.
LivingEntity org.bukkit.entity.Projectile.getShooter ( )

Retrieve the shooter of this projectile.

The returned value can be null for projectiles shot from a Dispenser for example.

Returns
the LivingEntity that shot this projectile
void org.bukkit.entity.Projectile.setBounce ( boolean  doesBounce)

Set whether or not this projectile should bounce or not when it hits something.

Parameters
doesBouncewhether or not it should bounce.
void org.bukkit.entity.Projectile.setShooter ( LivingEntity  shooter)

Set the shooter of this projectile.

Parameters
shooterthe LivingEntity that shot this projectile

The documentation for this interface was generated from the following file: