org.bukkit.entity
Interface Pig

All Superinterfaces:
Ageable, Animals, Creature, Damageable, Entity, LivingEntity, Metadatable, Vehicle

public interface Pig
extends Animals, Vehicle

Represents a Pig.


Method Summary
 boolean hasSaddle()
          Check if the pig has a saddle.
 void setSaddle(boolean saddled)
          Sets if the pig has a saddle or not
 
Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
 
Methods inherited from interface org.bukkit.entity.Creature
getTarget, setTarget
 
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getCustomName, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, hasLineOfSight, hasPotionEffect, isCustomNameVisible, launchProjectile, removePotionEffect, setCanPickupItems, setCustomName, setCustomNameVisible, setLastDamage, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, shootArrow, throwEgg, throwSnowball
 
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
 
Methods inherited from interface org.bukkit.entity.Vehicle
getVelocity, setVelocity
 

Method Detail

hasSaddle

boolean hasSaddle()
Check if the pig has a saddle.

Returns:
if the pig has been saddled.

setSaddle

void setSaddle(boolean saddled)
Sets if the pig has a saddle or not

Parameters:
saddled - set if the pig has a saddle or not.


Copyright © 2013. All Rights Reserved.