Interface Bat

All Superinterfaces:
Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider

public interface Bat extends Mob
A bat (minecraft:bat): it flutters around in the dark, and hangs upside down under a block to rest until a player comes close.

Like every entity, change it from the region thread owning its chunk.

Since:
0.1.0
  • Method Details

    • isResting

      boolean isResting()
      Returns true while this bat hangs under a block to rest.
      Returns:
      true while this bat hangs under a block to rest
      Since:
      0.1.0
    • setResting

      void setResting(boolean resting)
      Makes this bat hang under the block above it to rest, or fly off.
      Parameters:
      resting - true to make it rest
      Since:
      0.1.0