001 package org.bukkit.entity; 002 003 import org.bukkit.block.BlockFace; 004 import org.bukkit.material.Attachable; 005 006 /** 007 * Represents a Hanging entity 008 */ 009 public interface Hanging extends Entity, Attachable { 010 011 /** 012 * Sets the direction of the hanging entity, potentially overriding rules 013 * of placement. Note that if the result is not valid the object would 014 * normally drop as an item. 015 * 016 * @param face The new direction. 017 * @param force Whether to force it. 018 * @return False if force was false and there was no block for it to 019 * attach to in order to face the given direction. 020 */ 021 public boolean setFacingDirection(BlockFace face, boolean force); 022 }