Interface Panda

All Superinterfaces:
Ageable, Animals, Attributable, Audience, Breedable, CommandSender, Creature, Damageable, Entity, 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
    • 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
    • setSneezing

      void setSneezing(boolean sneeze)
      Sets if the panda is sneezing, which causes the sneeze counter to count.

      When false, this will automatically set the sneeze ticks to 0.

      Parameters:
      sneeze - if the panda is sneezing or not
    • isSneezing

      boolean isSneezing()
      Gets if the panda is sneezing
      Returns:
      is sneezing
    • 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
    • getUnhappyTicks

      int getUnhappyTicks()
      Gets how many ticks this panda will be unhappy for.
      Returns:
      unhappy ticks
    • setRolling

      void setRolling(boolean rolling)
      Sets if this panda is currently rolling.
      Parameters:
      rolling - should roll
    • isRolling

      boolean isRolling()
      Gets if this panda is currently rolling on the ground.
      Returns:
      is rolling
    • setIsOnBack

      void setIsOnBack(boolean onBack)
      Sets if this panda is currently on its back.
      Parameters:
      onBack - is on its back
    • isOnBack

      boolean isOnBack()
      Gets if this panda is currently on its back.
      Returns:
      is on 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