Files
DeltaZern/paper-api/src/main/java/org/bukkit/entity/Hanging.java
T
Bukkit/Spigot bb50f1a774 Pulling all pending Bukkit-JavaDoc changes
A special thanks goes to @aerouk for almost all of the changes found here.

By: Wesley Wolfe <weswolf@aol.com>
2013-12-15 01:07:43 -05:00

23 lines
689 B
Java

package org.bukkit.entity;
import org.bukkit.block.BlockFace;
import org.bukkit.material.Attachable;
/**
* Represents a Hanging entity
*/
public interface Hanging extends Entity, Attachable {
/**
* 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.
*
* @param face The new direction.
* @param force Whether to force it.
* @return False if force was false and there was no block for it to
* attach to in order to face the given direction.
*/
public boolean setFacingDirection(BlockFace face, boolean force);
}