aboutsummaryrefslogtreecommitdiffhomepage
path: root/paper-api
diff options
context:
space:
mode:
authorSoSeDiK <[email protected]>2024-05-01 08:22:13 +0300
committerSoSeDiK <[email protected]>2024-05-01 08:22:13 +0300
commitfd8df6aeed63c3ee7326071e9125b1a06d4822b9 (patch)
tree321f427060a91270124dffb2fa8d02eb6e4ab21e /paper-api
parentdaebdc24e75b7c4484f950a810cd82232c516f70 (diff)
downloadPaper-fd8df6aeed63c3ee7326071e9125b1a06d4822b9.tar.gz
Paper-fd8df6aeed63c3ee7326071e9125b1a06d4822b9.zip
More Chest Block API
Diffstat (limited to 'paper-api')
-rw-r--r--paper-api/src/main/java/org/bukkit/block/Chest.java10
-rw-r--r--paper-api/src/main/java/org/bukkit/block/EnderChest.java11
2 files changed, 20 insertions, 1 deletions
diff --git a/paper-api/src/main/java/org/bukkit/block/Chest.java b/paper-api/src/main/java/org/bukkit/block/Chest.java
index db6affbc78..5d02f9c938 100644
--- a/paper-api/src/main/java/org/bukkit/block/Chest.java
+++ b/paper-api/src/main/java/org/bukkit/block/Chest.java
@@ -27,4 +27,14 @@ public interface Chest extends Container, LootableBlockInventory, Lidded { // Pa
*/
@NotNull
Inventory getBlockInventory();
+
+ // Paper start - More Chest Block API
+ /**
+ * Checks whether this chest is blocked
+ * by either a block above or a sitting cat
+ *
+ * @return whether this chest is blocked
+ */
+ boolean isBlocked();
+ // Paper end - More Chest Block API
}
diff --git a/paper-api/src/main/java/org/bukkit/block/EnderChest.java b/paper-api/src/main/java/org/bukkit/block/EnderChest.java
index 1150b449a3..6b66f38e55 100644
--- a/paper-api/src/main/java/org/bukkit/block/EnderChest.java
+++ b/paper-api/src/main/java/org/bukkit/block/EnderChest.java
@@ -3,4 +3,13 @@ package org.bukkit.block;
/**
* Represents a captured state of an ender chest.
*/
-public interface EnderChest extends Lidded, TileState { }
+public interface EnderChest extends Lidded, TileState {
+ // Paper start - More Chest Block API
+ /**
+ * Checks whether this ender chest is blocked by a block above
+ *
+ * @return whether this ender chest is blocked
+ */
+ boolean isBlocked();
+ // Paper end - More Chest Block API
+}