Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.entity.Pig Interface Reference
Inheritance diagram for org.bukkit.entity.Pig:
org.bukkit.entity.Animals org.bukkit.entity.Vehicle org.bukkit.entity.Ageable org.bukkit.entity.Entity org.bukkit.entity.Creature org.bukkit.metadata.Metadatable org.bukkit.entity.LivingEntity org.bukkit.entity.Entity org.bukkit.entity.Damageable org.bukkit.projectiles.ProjectileSource org.bukkit.metadata.Metadatable org.bukkit.entity.Entity org.bukkit.metadata.Metadatable

Public Member Functions

boolean hasSaddle ()
void setSaddle (boolean saddled)
- Public Member Functions inherited from org.bukkit.entity.Ageable
int getAge ()
void setAge (int age)
void setAgeLock (boolean lock)
boolean getAgeLock ()
void setBaby ()
void setAdult ()
boolean isAdult ()
boolean canBreed ()
void setBreed (boolean breed)
- Public Member Functions inherited from org.bukkit.entity.Creature
void setTarget (LivingEntity target)
LivingEntity getTarget ()
- Public Member Functions inherited from org.bukkit.entity.LivingEntity
double getEyeHeight ()
double getEyeHeight (boolean ignoreSneaking)
Location getEyeLocation ()
List< BlockgetLineOfSight (HashSet< Byte > transparent, int maxDistance)
Block getTargetBlock (HashSet< Byte > transparent, int maxDistance)
List< BlockgetLastTwoTargetBlocks (HashSet< Byte > transparent, int maxDistance)
Egg throwEgg ()
Snowball throwSnowball ()
Arrow shootArrow ()
int getRemainingAir ()
void setRemainingAir (int ticks)
int getMaximumAir ()
void setMaximumAir (int ticks)
int getMaximumNoDamageTicks ()
void setMaximumNoDamageTicks (int ticks)
double getLastDamage ()
int _INVALID_getLastDamage ()
void setLastDamage (double damage)
void _INVALID_setLastDamage (int damage)
int getNoDamageTicks ()
void setNoDamageTicks (int ticks)
Player getKiller ()
boolean addPotionEffect (PotionEffect effect)
boolean addPotionEffect (PotionEffect effect, boolean force)
boolean addPotionEffects (Collection< PotionEffect > effects)
boolean hasPotionEffect (PotionEffectType type)
void removePotionEffect (PotionEffectType type)
Collection< PotionEffectgetActivePotionEffects ()
boolean hasLineOfSight (Entity other)
boolean getRemoveWhenFarAway ()
void setRemoveWhenFarAway (boolean remove)
EntityEquipment getEquipment ()
void setCanPickupItems (boolean pickup)
boolean getCanPickupItems ()
void setCustomName (String name)
String getCustomName ()
void setCustomNameVisible (boolean flag)
boolean isCustomNameVisible ()
boolean isLeashed ()
Entity getLeashHolder () throws IllegalStateException
boolean setLeashHolder (Entity holder)
- Public Member Functions inherited from org.bukkit.entity.Entity
Location getLocation ()
Location getLocation (Location loc)
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 ()
- Public Member Functions inherited from org.bukkit.entity.Damageable
void damage (double amount)
void _INVALID_damage (int amount)
void damage (double amount, Entity source)
void _INVALID_damage (int amount, Entity source)
double getHealth ()
int _INVALID_getHealth ()
void setHealth (double health)
void _INVALID_setHealth (int health)
double getMaxHealth ()
int _INVALID_getMaxHealth ()
void setMaxHealth (double health)
void _INVALID_setMaxHealth (int health)
void resetMaxHealth ()
- Public Member Functions inherited from org.bukkit.projectiles.ProjectileSource
public< T extends Projectile > T launchProjectile (Class<?extends T > projectile)
public< T extends Projectile > T launchProjectile (Class<?extends T > projectile, Vector velocity)
- Public Member Functions inherited from org.bukkit.entity.Vehicle
Vector getVelocity ()
void setVelocity (Vector vel)

Detailed Description

Represents a Pig.

Definition at line 6 of file Pig.java.

Member Function Documentation

boolean org.bukkit.entity.Pig.hasSaddle ( )

Check if the pig has a saddle.

if the pig has been saddled.
void org.bukkit.entity.Pig.setSaddle ( boolean  saddled)

Sets if the pig has a saddle or not

saddledset if the pig has a saddle or not.

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