Interface Zombie

All Superinterfaces:
Alterbar, Ausbeutbar, BefehlAbsender, Berechtigtbar, Beschaedigbar, BestaendigeDatenInhaber, Feind, Kreatur, Lebewesen, MerkmalInhaber, MetadatenInhaber, Mob, Monster, Nennbar, ProjektilQuelle, ServerBetreiber, Wesen
All Known Subinterfaces:
Ertrunkener, Schale, SchweineZombie, ZombieDorfbewohner

public interface Zombie extends Monster, Alterbar
Represents a Zombie.
  • Method Details

    • isBaby

      @Deprecated boolean isBaby()
      Deprecated.
      Gets whether the zombie is a baby
      Returns:
      Whether the zombie is a baby
    • setBaby

      @Deprecated void setBaby(boolean flag)
      Sets whether the zombie is a baby
      Parameters:
      flag - Whether the zombie is a baby
    • isVillager

      @Deprecated boolean isVillager()
      Deprecated.
      check if instanceof ZombieDorfbewohner.
      Gets whether the zombie is a villager
      Returns:
      Whether the zombie is a villager
    • setVillager

      @Deprecated @Contract("_ -> fail") void setVillager(boolean flag)
      Deprecated.
      must spawn ZombieDorfbewohner.
      Parameters:
      flag - flag
    • setVillagerProfession

      @Deprecated @Contract("_ -> fail") void setVillagerProfession(Dorfbewohner.Profession profession)
      Deprecated.
      Parameters:
      profession - profession
      See Also:
    • getVillagerProfession

      @Deprecated @Nullable @Contract("-> null") Dorfbewohner.Profession getVillagerProfession()
      Deprecated.
      Returns:
      profession
      See Also:
    • isConverting

      boolean isConverting()
      Get if this wesen is in the process of converting to a Ertrunkener as a result of being underwater.
      Returns:
      conversion status
    • getConversionTime

      int getConversionTime()
      Gets the amount of ticks until this wesen will be converted to a Ertrunkener as a result of being underwater. When this reaches 0, the wesen will be converted.
      Returns:
      conversion time
      Throws:
      IllegalStateException - if isConverting() is false.
    • setConversionTime

      void setConversionTime(int time)
      Sets the amount of ticks until this wesen will be converted to a Ertrunkener as a result of being underwater. When this reaches 0, the wesen will be converted. A value of less than 0 will stop the current conversion process without converting the current wesen.
      Parameters:
      time - new conversion time
    • canBreakDoors

      boolean canBreakDoors()
      Gets whether this zombie can break doors
      Returns:
      Whether this zombie can break doors
    • setCanBreakDoors

      void setCanBreakDoors(boolean flag)
      Sets whether this zombie can break doors This will be ignored if the wesen is a Ertrunkener. Will also stop the aktion if the wesen is currently breaking a door.
      Parameters:
      flag - Whether this zombie can break doors