From 38f6b24c1caae78d0eef297e2db134aec04644b7 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 31 Oct 2012 06:35:57 -0500 Subject: [PATCH] Add BlockCommandSender for Command block By: Travis Watkins --- .../java/org/bukkit/command/BlockCommandSender.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 paper-api/src/main/java/org/bukkit/command/BlockCommandSender.java diff --git a/paper-api/src/main/java/org/bukkit/command/BlockCommandSender.java b/paper-api/src/main/java/org/bukkit/command/BlockCommandSender.java new file mode 100644 index 0000000000..6dc4660791 --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/command/BlockCommandSender.java @@ -0,0 +1,12 @@ +package org.bukkit.command; + +import org.bukkit.block.Block; + +public interface BlockCommandSender extends CommandSender { + /** + * Returns the block this command sender belongs to + * + * @return Block for the command sender + */ + public Block getBlock(); +}