Package org.bukkit.entity
Interface Wolf
- All Superinterfaces:
Ageable,Animals,CommandSender,Creature,Damageable,Entity,LivingEntity,Metadatable,Permissible,ProjectileSource,ServerOperator,Tameable
public interface Wolf extends Animals, Tameable
Represents a Wolf
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description DyeColorgetCollarColor()Get the collar color of this wolfbooleanisAngry()Checks if this wolf is angrybooleanisSitting()Checks if this wolf is sittingvoidsetAngry(boolean angry)Sets the anger of this wolf.voidsetCollarColor(DyeColor color)Set the collar color of this wolfvoidsetSitting(boolean sitting)Sets if this wolf is sitting.Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreedMethods 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
-
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
Set the collar color of this wolf- Parameters:
color- the color to apply
-