接口 PiglinAbstract

所有超级接口:
Ageable, Attributable, CommandSender, Creature, Damageable, Enemy, Entity, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator
所有已知子接口:
Piglin, PiglinBrute

public interface PiglinAbstract extends Monster, Ageable
Piglin / Piglin Brute.
  • 方法详细资料

    • isImmuneToZombification

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

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

      int getConversionTime()
      Gets the amount of ticks until this entity will be converted to a Zombified Piglin. 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 Zombified Piglin. 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 Zombified Piglin.
      返回:
      conversion status
    • isBaby

      @Deprecated boolean isBaby()
      已过时。
      Gets whether the piglin is a baby
      返回:
      Whether the piglin is a baby
    • setBaby

      @Deprecated void setBaby(boolean flag)
      Sets whether the piglin is a baby
      参数:
      flag - Whether the piglin is a baby