Interface Panda

All Superinterfaces:
Ageable, Animals, Attributable, Audience, Breedable, CommandSender, Creature, Damageable, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sittable, Sound.Emitter

public interface Panda extends Animals, Sittable
Panda entity.
  • Method Details

    • getMainGene

      Gets this Panda's main gene.
      Returns:
      main gene
    • setMainGene

      void setMainGene(@NotNull @NotNull Panda.Gene gene)
      Sets this Panda's main gene.
      Parameters:
      gene - main gene
    • getHiddenGene

      @NotNull @NotNull Panda.Gene getHiddenGene()
      Gets this Panda's hidden gene.
      Returns:
      hidden gene
    • setHiddenGene

      void setHiddenGene(@NotNull @NotNull Panda.Gene gene)
      Sets this Panda's hidden gene.
      Parameters:
      gene - hidden gene
    • isRolling

      boolean isRolling()
      Gets whether the Panda is rolling
      Returns:
      Whether the Panda is rolling
    • setRolling

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

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

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

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

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

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

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

      int getUnhappyTicks()
      Gets how many ticks the panda will be unhappy for
      Returns:
      The number of ticks the panda will be unhappy for
    • setSneezeTicks

      void setSneezeTicks(int ticks)
      Sets the sneeze progress in this animation. This value counts up only if isSneezing() is true
      Parameters:
      ticks - sneeze progress
    • getSneezeTicks

      int getSneezeTicks()
      Gets the current sneeze progress, or how many ticks this panda will sneeze for.
      Returns:
      sneeze progress
    • setEatingTicks

      void setEatingTicks(int ticks)
      Sets the eating ticks for this panda.

      This starts counting up as long as it is greater than 0.

      Parameters:
      ticks - eating ticks
    • getEatingTicks

      int getEatingTicks()
      Gets the current eating progress, or how many ticks this panda has been eating for.
      Returns:
      eating progress
    • setUnhappyTicks

      void setUnhappyTicks(int ticks)
      Sets the number of ticks this panda will be unhappy for.

      This value counts down.

      Parameters:
      ticks - unhappy ticks
    • setIsOnBack

      @Deprecated(forRemoval=true) default void setIsOnBack(boolean onBack)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets if this panda is currently on its back.
      Parameters:
      onBack - is on its back
    • setIsSitting

      @Deprecated(forRemoval=true) default void setIsSitting(boolean sitting)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets if this panda is currently sitting.
      Parameters:
      sitting - is currently sitting
    • setSitting

      void setSitting(boolean sitting)
      Sets if this panda is currently sitting.
      Specified by:
      setSitting in interface Sittable
      Parameters:
      sitting - is currently sitting
    • isSitting

      boolean isSitting()
      Gets if this panda is sitting.
      Specified by:
      isSitting in interface Sittable
      Returns:
      is sitting