summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/entity/Hanging.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/entity/Hanging.java')
-rw-r--r--src/main/java/org/bukkit/entity/Hanging.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/entity/Hanging.java b/src/main/java/org/bukkit/entity/Hanging.java
index 46548ec0..0b1979d9 100644
--- a/src/main/java/org/bukkit/entity/Hanging.java
+++ b/src/main/java/org/bukkit/entity/Hanging.java
@@ -1,6 +1,20 @@
package org.bukkit.entity;
+import org.bukkit.block.BlockFace;
+import org.bukkit.material.Attachable;
+
/**
* Represents a Hanging entity
*/
-public interface Hanging extends 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);
+}