Interface Bee

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, Sound.Emitter

public interface Bee extends Animals
Represents a Bee.
  • Method Details

    • getHive

      Get the bee's hive location.
      Returns:
      hive location or null
    • setHive

      void setHive(@Nullable @Nullable Location location)
      Set the bee's hive location.
      Parameters:
      location - or null
    • getFlower

      Get the bee's flower location.
      Returns:
      flower location or null
    • setFlower

      void setFlower(@Nullable @Nullable Location location)
      Set the bee's flower location.
      Parameters:
      location - or null
    • hasNectar

      boolean hasNectar()
      Get if the bee has nectar.
      Returns:
      nectar
    • setHasNectar

      void setHasNectar(boolean nectar)
      Set if the bee has nectar.
      Parameters:
      nectar - whether the entity has nectar
    • hasStung

      boolean hasStung()
      Get if the bee has stung.
      Returns:
      has stung
    • setHasStung

      void setHasStung(boolean stung)
      Set if the bee has stung.
      Parameters:
      stung - has stung
    • getAnger

      int getAnger()
      Get the bee's anger level.
      Returns:
      anger level
    • setAnger

      void setAnger(int anger)
      Set the bee's new anger level.
      Parameters:
      anger - new anger
    • getCannotEnterHiveTicks

      int getCannotEnterHiveTicks()
      Get the amount of ticks the bee cannot enter the hive for.
      Returns:
      Ticks the bee cannot enter a hive for
    • setCannotEnterHiveTicks

      void setCannotEnterHiveTicks(int ticks)
      Set the amount of ticks the bee cannot enter a hive for.
      Parameters:
      ticks - Ticks the bee cannot enter a hive for
    • setRollingOverride

      void setRollingOverride(@NotNull TriState rolling)
      Sets the override for if the bee is currently rolling.
      Parameters:
      rolling - is rolling, or unset for vanilla behavior
    • getRollingOverride

      @NotNull TriState getRollingOverride()
      Gets the plugin set override for if the bee is currently rolling.
      Returns:
      plugin set rolling override
    • isRolling

      boolean isRolling()
      Gets if the bee is currently rolling.
      Returns:
      is rolling
    • setCropsGrownSincePollination

      void setCropsGrownSincePollination(int crops)
      Sets how many crops this bee has grown since it last pollinated.
      Parameters:
      crops - number of crops
    • getCropsGrownSincePollination

      int getCropsGrownSincePollination()
      Gets how many crops this bee has grown since it last pollinated.
      Returns:
      number of crops
    • setTicksSincePollination

      void setTicksSincePollination(int ticks)
      Sets how many ticks this bee has gone without pollinating.
      Parameters:
      ticks - number of ticks
    • getTicksSincePollination

      int getTicksSincePollination()
      Gets how many ticks this bee has gone without pollinating
      Returns:
      number of ticks