![]() |
Bukkit
1.4.7-R1.0
|
Represents a complex living entity - one that is made up of various smaller parts. More...
Inheritance diagram for org.bukkit.entity.ComplexLivingEntity:
Collaboration diagram for org.bukkit.entity.ComplexLivingEntity:Public Member Functions | |
| Set< ComplexEntityPart > | getParts () |
| Gets a list of parts that belong to this complex entity. | |
Public Member Functions inherited from org.bukkit.entity.LivingEntity | |
| double | getEyeHeight () |
| Gets the height of the entity's head above its Location. | |
| double | getEyeHeight (boolean ignoreSneaking) |
| Gets the height of the entity's head above its Location. | |
| Location | getEyeLocation () |
| Get a Location detailing the current eye position of the LivingEntity. | |
| List< Block > | getLineOfSight (HashSet< Byte > transparent, int maxDistance) |
| Gets all blocks along the player's line of sight List iterates from player's position to target inclusive. | |
| Block | getTargetBlock (HashSet< Byte > transparent, int maxDistance) |
| Gets the block that the player has targeted. | |
| List< Block > | getLastTwoTargetBlocks (HashSet< Byte > transparent, int maxDistance) |
| Gets the last two blocks along the player's line of sight. | |
| Egg | throwEgg () |
| Throws an egg from the entity. | |
| Snowball | throwSnowball () |
| Throws a snowball from the entity. | |
| Arrow | shootArrow () |
| Shoots an arrow from the entity. | |
| public< T extends Projectile > T | launchProjectile (Class<?extends T > projectile) |
| Launches a Projectile from the entity. | |
| int | getRemainingAir () |
| Returns the amount of air that this entity has remaining, in ticks. | |
| void | setRemainingAir (int ticks) |
| Sets the amount of air that this entity has remaining, in ticks. | |
| int | getMaximumAir () |
| Returns the maximum amount of air this entity can have, in ticks. | |
| void | setMaximumAir (int ticks) |
| Sets the maximum amount of air this entity can have, in ticks. | |
| int | getMaximumNoDamageTicks () |
| Returns the entities current maximum noDamageTicks This is the time in ticks the entity will become unable to take equal or less damage than the lastDamage. | |
| void | setMaximumNoDamageTicks (int ticks) |
| Sets the entities current maximum noDamageTicks. | |
| int | getLastDamage () |
| Returns the entities lastDamage taken in the current noDamageTicks time. | |
| void | setLastDamage (int damage) |
| Sets the entities current maximum noDamageTicks. | |
| int | getNoDamageTicks () |
| Returns the entities current noDamageTicks. | |
| void | setNoDamageTicks (int ticks) |
| Sets the entities current noDamageTicks. | |
| Player | getKiller () |
| Gets the player identified as the killer of this entity. | |
| boolean | addPotionEffect (PotionEffect effect) |
| Adds the given PotionEffect to this entity. | |
| boolean | addPotionEffect (PotionEffect effect, boolean force) |
| Adds the given PotionEffect to this entity. | |
| boolean | addPotionEffects (Collection< PotionEffect > effects) |
| Attempts to add all of the given PotionEffect to this entity. | |
| boolean | hasPotionEffect (PotionEffectType type) |
| Returns whether the entity already has an existing effect of the given PotionEffectType applied to it. | |
| void | removePotionEffect (PotionEffectType type) |
| Removes any effects present of the given PotionEffectType. | |
| Collection< PotionEffect > | getActivePotionEffects () |
| Returns all currently active PotionEffects on this entity. | |
| boolean | hasLineOfSight (Entity other) |
| Checks whether the entity has block line of sight to another. | |
| boolean | getRemoveWhenFarAway () |
| Returns if the entity despawns when away from players or not. | |
| void | setRemoveWhenFarAway (boolean remove) |
| Sets whether or not the entity despawns when away from players or not. | |
| EntityEquipment | getEquipment () |
| Gets the inventory with the equipment worn by this entity. | |
| void | setCanPickupItems (boolean pickup) |
| Sets whether or not the entity can pick up items. | |
| boolean | getCanPickupItems () |
| Gets if the entity can pick up items. | |
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.Entity > | getNearbyEntities (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. | |
Public Member Functions inherited from org.bukkit.metadata.Metadatable | |
| void | setMetadata (String metadataKey, MetadataValue newMetadataValue) |
| Sets a metadata value in the implementing object's metadata store. | |
| List< MetadataValue > | getMetadata (String metadataKey) |
| Returns a list of previously set metadata values from the implementing object's metadata store. | |
| boolean | hasMetadata (String metadataKey) |
| Tests to see whether the implementing object contains the given metadata value in its metadata store. | |
| void | removeMetadata (String metadataKey, Plugin owningPlugin) |
| Removes the given metadata value from the implementing object's metadata store. | |
Public Member Functions inherited from org.bukkit.entity.Damageable | |
| void | damage (int amount) |
| Deals the given amount of damage to this entity. | |
| void | damage (int amount, Entity source) |
| Deals the given amount of damage to this entity, from a specified entity. | |
| int | getHealth () |
| Gets the entity's health from 0 to getMaxHealth(), where 0 is dead. | |
| void | setHealth (int health) |
| Sets the entity's health from 0 to getMaxHealth(), where 0 is dead. | |
| int | getMaxHealth () |
| Gets the maximum health this entity has. | |
| void | setMaxHealth (int health) |
| Sets the maximum health this entity can have. | |
| void | resetMaxHealth () |
| Resets the max health to the original amount. | |
Represents a complex living entity - one that is made up of various smaller parts.
Definition at line 8 of file ComplexLivingEntity.java.
| Set<ComplexEntityPart> org.bukkit.entity.ComplexLivingEntity.getParts | ( | ) |
Gets a list of parts that belong to this complex entity.