接口 Hoglin

所有超级接口:
Ageable, Animals, Attributable, Breedable, CommandSender, Creature, Damageable, Enemy, Entity, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Hoglin extends Animals, Enemy
Represents a Hoglin.
  • 方法详细资料

    • isImmuneToZombification

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

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

      boolean isAbleToBeHunted()
      Get whether the hoglin is able to be hunted by piglins.
      返回:
      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.
      参数:
      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.
      返回:
      conversion time
      抛出:
      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.
      参数:
      time - new conversion time
    • isConverting

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