Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.entity.Projectile Interface Reference
Inheritance diagram for org.bukkit.entity.Projectile:
org.bukkit.entity.Entity org.bukkit.metadata.Metadatable org.bukkit.entity.Arrow org.bukkit.entity.Egg org.bukkit.entity.EnderPearl org.bukkit.entity.Fireball org.bukkit.entity.Fish org.bukkit.entity.Snowball org.bukkit.entity.ThrownExpBottle org.bukkit.entity.ThrownPotion

Public Member Functions

LivingEntity _INVALID_getShooter ()
 
ProjectileSource getShooter ()
 
void _INVALID_setShooter (LivingEntity shooter)
 
void setShooter (ProjectileSource source)
 
boolean doesBounce ()
 
void setBounce (boolean doesBounce)
 
- Public Member Functions inherited from org.bukkit.entity.Entity
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.EntitygetNearbyEntities (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 ()
 

Detailed Description

Represents a shootable entity.

Definition at line 8 of file Projectile.java.

Member Function Documentation

LivingEntity org.bukkit.entity.Projectile._INVALID_getShooter ( )

This method exists for legacy reasons to provide backwards compatibility. It will not exist at runtime and should not be used under any circumstances.

void org.bukkit.entity.Projectile._INVALID_setShooter ( LivingEntity  shooter)

This method exists for legacy reasons to provide backwards compatibility. It will not exist at runtime and should not be used under any circumstances.

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.
ProjectileSource org.bukkit.entity.Projectile.getShooter ( )

Retrieve the shooter of this projectile.

Returns
the ProjectileSource 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 ( ProjectileSource  source)

Set the shooter of this projectile.

Parameters
sourcethe ProjectileSource that shot this projectile

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