Interface Panda

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

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

    • getMainGene

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

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

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

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

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

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

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

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

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

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

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

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

      int getUnhappyTicks()
      Gets how many ticks the panda will be unhappy for
      Returns:
      The number of ticks the panda will be unhappy for
      Since:
      1.18.1
    • 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
      Since:
      1.18.1
    • getSneezeTicks

      int getSneezeTicks()
      Gets the current sneeze progress, or how many ticks this panda will sneeze for.
      Returns:
      sneeze progress
      Since:
      1.18.1
    • 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
      Since:
      1.18.1
    • getEatingTicks

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

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

      This value counts down.

      Parameters:
      ticks - unhappy ticks
      Since:
      1.18.1
    • setIsOnBack

      @Deprecated(forRemoval=true, since="1.19") 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, since="1.19") 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
    • getCombinedGene

      @NotNull @NotNull Panda.Gene getCombinedGene()
      Gets this Panda's combined gene.

      The combined gene can be modified using setMainGene(Gene) or setHiddenGene(Gene).

      Returns:
      combined gene
      Since:
      1.20.2