Interface Zombie

    • Method Detail

      • isBaby

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

        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 ZombieVillager.
        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 ZombieVillager.
        Parameters:
        flag - flag
      • isConverting

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

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

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