Interface Hoglin

    • Method Detail

      • isImmuneToZombification

        boolean isImmuneToZombification()
        Gets whether the hoglin is immune to zombification.
        Returns:
        Whether the hoglin is immune to zombification
      • setImmuneToZombification

        void setImmuneToZombification​(boolean flag)
        Sets whether the hoglin is immune to zombification.
        Parameters:
        flag - Whether the hoglin is immune to zombification
      • isAbleToBeHunted

        boolean isAbleToBeHunted()
        Get whether the hoglin is able to be hunted by piglins.
        Returns:
        Whether the hoglin is able to be hunted by piglins
      • setIsAbleToBeHunted

        void setIsAbleToBeHunted​(boolean flag)
        Sets whether the hoglin is able to be hunted by piglins.
        Parameters:
        flag - Whether the hoglin is able to be hunted by piglins.
      • getConversionTime

        int getConversionTime()
        Gets the amount of ticks until this entity will be converted to a Zoglin. When this reaches 300, 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 Zoglin. 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
      • isConverting

        boolean isConverting()
        Get if this entity is in the process of converting to a Zoglin.
        Returns:
        conversion status