org.bukkit.entity
Interface PigZombie

All Superinterfaces:
Creature, Damageable, Entity, LivingEntity, Metadatable, Monster, Zombie

public interface PigZombie
extends Zombie

Represents a Pig Zombie.


Method Summary
 int getAnger()
          Get the pig zombie's current anger level.
 boolean isAngry()
          Shorthand; gets whether the zombie is angry.
 void setAnger(int level)
          Set the pig zombie's current anger level.
 void setAngry(boolean angry)
          Shorthand; sets to either 0 or the default level.
 
Methods inherited from interface org.bukkit.entity.Zombie
isBaby, isVillager, setBaby, setVillager
 
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
 

Method Detail

getAnger

int getAnger()
Get the pig zombie's current anger level.

Returns:
The anger level.

setAnger

void setAnger(int level)
Set the pig zombie's current anger level.

Parameters:
level - The anger level. Higher levels of anger take longer to wear off.

setAngry

void setAngry(boolean angry)
Shorthand; sets to either 0 or the default level.

Parameters:
angry - Whether the zombie should be angry.

isAngry

boolean isAngry()
Shorthand; gets whether the zombie is angry.

Returns:
True if the zombie is angry, otherwise false.


Copyright © 2013. All Rights Reserved.