Interface Bat

All Superinterfaces:
Ambient, Attributable, net.kyori.adventure.audience.Audience, CommandSender, Damageable, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator

public interface Bat extends Ambient
Represents a Bat
  • Method Details

    • isAwake

      boolean isAwake()
      Checks the current waking state of this bat.

      This does not imply any persistence of state past the method call.

      Returns:
      true if the bat is awake or false if it is currently hanging from a block
    • setAwake

      void setAwake(boolean state)
      This method modifies the current waking state of this bat.

      This does not prevent a bat from spontaneously awaking itself, or from reattaching itself to a block.

      Parameters:
      state - the new state