org.bukkit.entity
Interface Wolf

All Superinterfaces:
Ageable, Animals, Creature, Damageable, Entity, LivingEntity, Metadatable, ProjectileSource, Tameable

public interface Wolf
extends Animals, Tameable

Represents a Wolf


Method Summary
 DyeColor getCollarColor()
          Get the collar color of this wolf
 boolean isAngry()
          Checks if this wolf is angry
 boolean isSitting()
          Checks if this wolf is sitting
 void setAngry(boolean angry)
          Sets the anger of this wolf.
 void setCollarColor(DyeColor color)
          Set the collar color of this wolf
 void setSitting(boolean sitting)
          Sets if this wolf is sitting.
 
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
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getCustomName, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, hasLineOfSight, hasPotionEffect, isCustomNameVisible, isLeashed, removePotionEffect, setCanPickupItems, setCustomName, setCustomNameVisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, shootArrow, throwEgg, throwSnowball
 
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, setMaxHealth
 
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
 
Methods inherited from interface org.bukkit.entity.Tameable
getOwner, isTamed, setOwner, setTamed
 

Method Detail

isAngry

boolean isAngry()
Checks if this wolf is angry

Returns:
Anger true if angry

setAngry

void setAngry(boolean angry)
Sets the anger of this wolf.

An angry wolf can not be fed or tamed, and will actively look for targets to attack.

Parameters:
angry - true if angry

isSitting

boolean isSitting()
Checks if this wolf is sitting

Returns:
true if sitting

setSitting

void setSitting(boolean sitting)
Sets if this wolf is sitting.

Will remove any path that the wolf was following beforehand.

Parameters:
sitting - true if sitting

getCollarColor

DyeColor getCollarColor()
Get the collar color of this wolf

Returns:
the color of the collar

setCollarColor

void setCollarColor(DyeColor color)
Set the collar color of this wolf

Parameters:
color - the color to apply


Copyright © 2014. All rights reserved.