Interface Bat

    • Method Detail

      • 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