summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/block/Skull.java
diff options
context:
space:
mode:
authormeiskam <meiskam@gmail.com>2012-12-20 17:46:21 -0500
committerfeildmaster <admin@feildmaster.com>2012-12-21 22:24:50 -0600
commitc633a472db59d51478338bd90227a0d46145fef1 (patch)
tree8fc8a7677d306909bbfb4e206e1d93b40bf3b9d8 /src/main/java/org/bukkit/block/Skull.java
parent5be32cd8f0d5c17ed8f4a8f74b6d60e4ccc66d03 (diff)
downloadbukkit-c633a472db59d51478338bd90227a0d46145fef1.tar
bukkit-c633a472db59d51478338bd90227a0d46145fef1.tar.gz
bukkit-c633a472db59d51478338bd90227a0d46145fef1.tar.lz
bukkit-c633a472db59d51478338bd90227a0d46145fef1.tar.xz
bukkit-c633a472db59d51478338bd90227a0d46145fef1.zip
Add Skull BlockState and Type enum. Adds BUKKIT-3258
Diffstat (limited to 'src/main/java/org/bukkit/block/Skull.java')
-rw-r--r--src/main/java/org/bukkit/block/Skull.java59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/Skull.java b/src/main/java/org/bukkit/block/Skull.java
new file mode 100644
index 00000000..e5ee6b6e
--- /dev/null
+++ b/src/main/java/org/bukkit/block/Skull.java
@@ -0,0 +1,59 @@
+package org.bukkit.block;
+
+import org.bukkit.SkullType;
+
+/**
+ * Represents a Skull
+ */
+public interface Skull extends BlockState {
+
+ /**
+ * Checks to see if the skull has an owner
+ *
+ * @return true if the skull has an owner
+ */
+ public boolean hasOwner();
+
+ /**
+ * Gets the owner of the skull
+ *
+ * @return the owner if the skull
+ */
+ public String getOwner();
+
+ /**
+ * Sets the owner of the skull
+ *
+ * @param owner the new owner of the skull
+ * @return true if the owner was successfully set
+ */
+ public boolean setOwner(String name);
+
+ /**
+ * Gets the rotation of the skull
+ *
+ * @return the rotation of the skull
+ */
+ public BlockFace getRotation();
+
+ /**
+ * Sets the rotation of the skull
+ *
+ * @param rotation the rotation of the skull
+ */
+ public void setRotation(BlockFace rotation);
+
+ /**
+ * Gets the type of skull
+ *
+ * @return the type of skull
+ */
+ public SkullType getSkullType();
+
+ /**
+ * Sets the type of skull
+ *
+ * @param skullType the type of skull
+ */
+ public void setSkullType(SkullType skullType);
+}