Package org.bukkit.entity
Interface PigZombie
- All Superinterfaces:
CommandSender,Creature,Damageable,Entity,LivingEntity,Metadatable,Monster,Permissible,ProjectileSource,ServerOperator,Zombie
public interface PigZombie extends Zombie
Represents a Pig Zombie.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description intgetAnger()Get the pig zombie's current anger level.booleanisAngry()Shorthand; gets whether the zombie is angry.voidsetAnger(int level)Set the pig zombie's current anger level.voidsetAngry(boolean angry)Shorthand; sets to either 0 or the default level.Methods inherited from interface org.bukkit.entity.Damageable
_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.LivingEntity
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlock, hasLineOfSight, hasPotionEffect, isLeashed, removePotionEffect, setCanPickupItems, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, shootArrow, throwEgg, throwSnowballMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
Method Details
-
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.
-