Interface Wolf

All Superinterfaces:
Ageable, Animals, Attributable, Audience, Breedable, CollarColorable, CommandSender, Creature, Damageable, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sittable, Sound.Emitter, Tameable

public interface Wolf extends Tameable, Sittable, CollarColorable
Represents a Wolf
  • 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.

      Parameters:
      angry - true if angry
      See Also:
    • getCollarColor

      @NotNull @NotNull DyeColor getCollarColor()
      Get the collar color of this wolf
      Specified by:
      getCollarColor in interface CollarColorable
      Returns:
      the color of the collar
    • setCollarColor

      void setCollarColor(@NotNull @NotNull DyeColor color)
      Set the collar color of this wolf
      Specified by:
      setCollarColor in interface CollarColorable
      Parameters:
      color - the color to apply
    • isWet

      boolean isWet()
      Gets whether the wolf is wet
      Returns:
      Whether the wolf is wet
    • getTailAngle

      float getTailAngle()
      Gets the wolf's tail angle in radians
      Returns:
      The angle of the wolf's tail in radians
    • isInterested

      boolean isInterested()
      Gets if the wolf is interested
      Returns:
      Whether the wolf is interested
    • setInterested

      void setInterested(boolean interested)
      Set wolf to be interested
      Parameters:
      interested - Whether the wolf is interested
    • isRabid

      boolean isRabid()
      Checks if this wolf is rabid
      Returns:
      whether the wolf is rabid
    • setRabid

      void setRabid(boolean rabid)
      Sets this wolf to be rabid or not
      Parameters:
      rabid - whether the wolf should be rabid