From 6dda855a007837b805c07cbf16542590e4c0f186 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 2 Dec 2016 09:29:21 +1100 Subject: [PATCH] Add BlockStates for more Blocks By: md_5 --- paper-api/src/main/java/org/bukkit/block/Comparator.java | 6 ++++++ .../src/main/java/org/bukkit/block/DaylightDetector.java | 6 ++++++ .../src/main/java/org/bukkit/block/EnchantingTable.java | 8 ++++++++ paper-api/src/main/java/org/bukkit/block/EnderChest.java | 6 ++++++ 4 files changed, 26 insertions(+) create mode 100644 paper-api/src/main/java/org/bukkit/block/Comparator.java create mode 100644 paper-api/src/main/java/org/bukkit/block/DaylightDetector.java create mode 100644 paper-api/src/main/java/org/bukkit/block/EnchantingTable.java create mode 100644 paper-api/src/main/java/org/bukkit/block/EnderChest.java diff --git a/paper-api/src/main/java/org/bukkit/block/Comparator.java b/paper-api/src/main/java/org/bukkit/block/Comparator.java new file mode 100644 index 0000000000..dfb98c260f --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/block/Comparator.java @@ -0,0 +1,6 @@ +package org.bukkit.block; + +/** + * Represents an on / off comparator. + */ +public interface Comparator extends BlockState { } diff --git a/paper-api/src/main/java/org/bukkit/block/DaylightDetector.java b/paper-api/src/main/java/org/bukkit/block/DaylightDetector.java new file mode 100644 index 0000000000..6457c3396d --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/block/DaylightDetector.java @@ -0,0 +1,6 @@ +package org.bukkit.block; + +/** + * Represents a (possibly inverted) daylight detector. + */ +public interface DaylightDetector extends BlockState { } diff --git a/paper-api/src/main/java/org/bukkit/block/EnchantingTable.java b/paper-api/src/main/java/org/bukkit/block/EnchantingTable.java new file mode 100644 index 0000000000..64c9e65048 --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/block/EnchantingTable.java @@ -0,0 +1,8 @@ +package org.bukkit.block; + +import org.bukkit.Nameable; + +/** + * Represents an enchanting table. + */ +public interface EnchantingTable extends BlockState, Nameable { } diff --git a/paper-api/src/main/java/org/bukkit/block/EnderChest.java b/paper-api/src/main/java/org/bukkit/block/EnderChest.java new file mode 100644 index 0000000000..dfb808cb72 --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/block/EnderChest.java @@ -0,0 +1,6 @@ +package org.bukkit.block; + +/** + * Represents an ender chest. + */ +public interface EnderChest extends BlockState { }