接口 Panda

所有超级接口:
Ageable, Animals, Attributable, Breedable, CommandSender, Creature, Damageable, Entity, 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.

      返回:
      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
      返回:
      Whether the Panda is rolling
    • setRolling

      void setRolling(boolean flag)
      Sets whether the Panda is rolling
      参数:
      flag - Whether the Panda is rolling
    • isSneezing

      boolean isSneezing()
      Gets whether the Panda is sneezing
      返回:
      Whether the Panda is sneezing
    • setSneezing

      void setSneezing(boolean flag)
      Sets whether the Panda is sneezing
      参数:
      flag - Whether the Panda is sneezing
    • isOnBack

      boolean isOnBack()
      Gets whether the Panda is on its back
      返回:
      Whether the Panda is on its back
    • setOnBack

      void setOnBack(boolean flag)
      Sets whether the Panda is on its back
      参数:
      flag - Whether the Panda is on its back
    • isEating

      boolean isEating()
      Gets whether the Panda is eating
      返回:
      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 - Whether the Panda is eating
    • isScared

      boolean isScared()
      Gets whether the Panda is scared
      返回:
      Whether the Panda is scared
    • getUnhappyTicks

      int getUnhappyTicks()
      Gets how many ticks the panda will be unhappy for
      返回:
      The number of ticks the panda will be unhappy for