Interface Bat

All Superinterfaces:
Ambient, Attributable, Audience, CommandSender, Damageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

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