Interface Hanging

    • Method Detail

      • setFacingDirection

        boolean setFacingDirection​(@NotNull
                                   BlockFace face,
                                   boolean force)
        Sets the direction of the hanging entity, potentially overriding rules of placement. Note that if the result is not valid the object would normally drop as an item.
        Parameters:
        face - The new direction.
        force - Whether to force it.
        Returns:
        False if force was false and there was no block for it to attach to in order to face the given direction.