summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/block/data/type/Slab.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/block/data/type/Slab.java')
-rw-r--r--src/main/java/org/bukkit/block/data/type/Slab.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/data/type/Slab.java b/src/main/java/org/bukkit/block/data/type/Slab.java
new file mode 100644
index 00000000..4e675a50
--- /dev/null
+++ b/src/main/java/org/bukkit/block/data/type/Slab.java
@@ -0,0 +1,43 @@
+package org.bukkit.block.data.type;
+
+import org.bukkit.block.data.BlockData;
+import org.bukkit.block.data.Waterlogged;
+
+/**
+ * 'type' represents what state the slab is in - either top, bottom, or a double
+ * slab occupying the full block.
+ */
+public interface Slab extends BlockData, Waterlogged {
+
+ /**
+ * Gets the value of the 'type' property.
+ *
+ * @return the 'type' value
+ */
+ Type getType();
+
+ /**
+ * Sets the value of the 'type' property.
+ *
+ * @param type the new 'type' value
+ */
+ void setType(Type type);
+
+ /**
+ * The type of the slab.
+ */
+ public enum Type {
+ /**
+ * The slab occupies the upper y half of the block.
+ */
+ TOP,
+ /**
+ * The slab occupies the lower y half of the block.
+ */
+ BOTTOM,
+ /**
+ * The slab occupies the entire block.
+ */
+ DOUBLE;
+ }
+}