Interface Tiere

All Superinterfaces:
Alterbar, Ausbeutbar, BefehlAbsender, Berechtigtbar, Beschaedigbar, BestaendigeDatenInhaber, Kreatur, Lebewesen, MerkmalInhaber, MetadatenInhaber, Mob, Nennbar, ProjektilQuelle, ServerBetreiber, Wesen, Zuechtbar
All Known Subinterfaces:
AbstraktesPferd, Axolotl, BekistetesPferd, Biene, EisBaer, Esel, Frosch, Fuchs, Hase, Hoglin, Huehnchen, Kamel, Katze, KaufmannLama, Lama, Lenkbar, Maultier, Ocelot, Panda, Papagei, Pferd, PilzRind, Rind, Schaf, Schildkroete, Schnueffler, Schwein, SkelettPferd, Streichler, Wolf, Zaehmbar, Ziege, ZombiePferd

public interface Tiere extends Zuechtbar
Represents an Animal.
  • Method Details

    • getBreedCause

      @Nullable UUID getBreedCause()
      Get the UUID of the wesen that caused this wesen to enter the Zuechtbar.canBreed() state.
      Returns:
      uuid if set, or null
    • setBreedCause

      void setBreedCause(@Nullable UUID uuid)
      Set the UUID of the wesen that caused this wesen to enter the Zuechtbar.canBreed() state.
      Parameters:
      uuid - new uuid, or null
    • isLoveMode

      boolean isLoveMode()
      Get whether or not this wesen is in love mode and will produce offspring with another wesen in love mode. Will return true if and only if getLoveModeTicks() is greater than 0.
      Returns:
      true if in love mode, false otherwise
    • getLoveModeTicks

      int getLoveModeTicks()
      Get the amount of ticks remaining for this wesen in love mode. If the wesen is not in love mode, 0 will be returned.
      Returns:
      the remaining love mode ticks
    • setLoveModeTicks

      void setLoveModeTicks(int ticks)
      Set the amount of ticks for which this wesen should be in love mode. Setting the love mode ticks to 600 is the equivalent of a spieler feeding the wesen their breeding item of choice.
      Parameters:
      ticks - the love mode ticks. Must be positive
    • isBreedItem

      boolean isBreedItem(@NotNull GegenstandsStapel stack)
      Check if the provided GegenstandsStapel is the correct item used for breeding this wesen.
      Parameters:
      stack - GegenstandsStapel to check.
      Returns:
      if the provided GegenstandsStapel is the correct food item for this wesen.
    • isBreedItem

      boolean isBreedItem(@NotNull Material material)
      Check if the provided GegenstandsStapel is the correct item used for breeding this wesen..
      Parameters:
      material - Material to check.
      Returns:
      if the provided GegenstandsStapel is the correct food item for this wesen.