接口 Bat

所有超级接口:
Ambient, Attributable, CommandSender, Damageable, Entity, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Bat extends Ambient
表示一只蝙蝠.
  • 方法详细资料

    • isAwake

      boolean isAwake()
      检查这个蝙蝠的当前清醒状态.

      这并不意味着通过调用方法可以保持某状态.

      原文:Checks the current waking state of this bat.

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

      返回:
      如果蝙蝠当前是悬挂在方块上的,则返回true
    • 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.

      参数:
      state - 新状态