接口 Panda

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

public interface Panda extends Animals, Sittable
代表熊猫.
  • 方法详细资料

    • getMainGene

      获得熊猫的显性基因.

      原文:Gets this Panda's main gene.

      返回:
      显性基因
    • setMainGene

      void setMainGene(@NotNull @NotNull Panda.Gene gene)
      设置熊猫的显性基因.

      原文:Sets this Panda's main gene.

      参数:
      gene - 显性基因
    • getHiddenGene

      @NotNull @NotNull Panda.Gene getHiddenGene()
      获取隐性基因.

      原文:Gets this Panda's hidden gene.

      返回:
      隐性基因
    • setHiddenGene

      void setHiddenGene(@NotNull @NotNull Panda.Gene gene)
      设置隐性基因.

      原文:Sets this Panda's hidden gene.

      参数:
      gene - 隐性基因
    • isRolling

      boolean isRolling()
      获取熊猫是否正在翻滚。

      原文:Gets whether the Panda is rolling.

      返回:
      是否正在翻滚
    • setRolling

      void setRolling(boolean flag)
      设置熊猫是否正在翻滚。

      原文:Sets whether the Panda is rolling.

      参数:
      flag - 是否正在翻滚
    • isSneezing

      boolean isSneezing()
      获取熊猫是否正在打喷嚏。

      原文:Gets whether the Panda is sneezing.

      返回:
      是否正在打喷嚏
    • setSneezing

      void setSneezing(boolean flag)
      设置熊猫是否正在打喷嚏。

      原文:Sets whether the Panda is sneezing.

      参数:
      flag - 是否正在打喷嚏
    • isOnBack

      boolean isOnBack()
      获取熊猫是否正在翻倒(背朝下)。

      原文:Gets whether the Panda is on its back.

      返回:
      是否正在翻倒(背朝下)
    • setOnBack

      void setOnBack(boolean flag)
      设置熊猫是否正在翻倒(背朝下)。

      原文:Sets whether the Panda is on its back.

      参数:
      flag - 是否正在翻倒(背朝下)
    • isEating

      boolean isEating()
      获取熊猫是否正在进食。

      原文:Gets whether the Panda is eating.

      返回:
      是否正在进食
    • setEating

      void setEating(boolean flag)
      设置熊猫的进食状态。熊猫必须持有食物才能生效。

      原文:Sets the Panda's eating status. The panda must be holding food for this to work.

      参数:
      flag - 是否正在进食
    • isScared

      boolean isScared()
      获取熊猫是否害怕。

      原文:Gets whether the Panda is scared.

      返回:
      是否害怕
    • getUnhappyTicks

      int getUnhappyTicks()
      获取熊猫将不开心持续多少tick。

      原文:Gets how many ticks the panda will be unhappy for.

      返回:
      熊猫将不开心持续的tick数