Interface Sheep

All Superinterfaces:
Ageable, Animal, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Shearable, Sound.Emitter, Sound.Source.Provider

public interface Sheep extends Animal, Shearable
A sheep (minecraft:sheep): shears cut one to three blocks of its wool, which grows back as it grazes; a dye changes its colour.

Like every entity, change it from the region thread owning its chunk.

Since:
0.1.0
  • Method Details

    • color

      DyeColor color()
      Returns the colour of this sheep's wool.
      Returns:
      the colour of this sheep's wool
      Since:
      0.1.0
    • setColor

      void setColor(DyeColor color)
      Dyes this sheep's wool.
      Parameters:
      color - the new colour
      Since:
      0.1.0
    • isSheared

      boolean isSheared()
      Returns true while this sheep has no wool.
      Returns:
      true while this sheep has no wool
      Since:
      0.1.0
    • setSheared

      void setSheared(boolean sheared)
      Takes this sheep's wool away, dropping nothing, or grows it back.
      Parameters:
      sheared - true to take it away
      Since:
      0.1.0
    • isGrazing

      boolean isGrazing()
      Returns true while this sheep has its head down, grazing.
      Returns:
      true while this sheep has its head down, grazing
      Since:
      0.1.0