Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Hanging.java
1 package org.bukkit.entity;
2 
5 
6 /**
7  * Represents a Hanging entity
8  */
9 public interface Hanging extends Entity, Attachable {
10 
11  /**
12  * Sets the direction of the hanging entity, potentially overriding rules
13  * of placement. Note that if the result is not valid the object would
14  * normally drop as an item.
15  *
16  * @param face The new direction.
17  * @param force Whether to force it.
18  * @return False if force was false and there was no block for it to
19  * attach to in order to face the given direction.
20  */
21  public boolean setFacingDirection(BlockFace face, boolean force);
22 }
boolean setFacingDirection(BlockFace face, boolean force)