|
| int | getAge () |
| | Gets the age of this animal.
|
| |
| void | setAge (int age) |
| | Sets the age of this animal.
|
| |
| void | setAgeLock (boolean lock) |
| | Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating.
|
| |
| boolean | getAgeLock () |
| | Gets the current agelock.
|
| |
| void | setBaby () |
| | Sets the age of the animal to a baby.
|
| |
| void | setAdult () |
| | Sets the age of the animal to an adult.
|
| |
| boolean | isAdult () |
| | Returns true if the animal is an adult.
|
| |
| boolean | canBreed () |
| | Return the ability to breed of the animal.
|
| |
| void | setBreed (boolean breed) |
| | Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up.
|
| |
| void | setTarget (LivingEntity target) |
| | Instructs this Creature to set the specified LivingEntity as its target.
|
| |
| LivingEntity | getTarget () |
| | Gets the current target of this Creature.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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 an entity that can age and breed.
Definition at line 6 of file Ageable.java.