summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorMatthew <stteg@hotmail.com>2016-03-18 11:35:59 -0400
committermd_5 <git@md-5.net>2016-03-20 20:26:10 +1100
commitb3f619f3c5ceb503c3649fe16a36b3fc90326a44 (patch)
tree7cd733dfd9975bd63ba67c6798c705da5c648328 /src/main
parent101dc61d0f76f4654ab3a72762aed7b1c7846843 (diff)
downloadbukkit-b3f619f3c5ceb503c3649fe16a36b3fc90326a44.tar
bukkit-b3f619f3c5ceb503c3649fe16a36b3fc90326a44.tar.gz
bukkit-b3f619f3c5ceb503c3649fe16a36b3fc90326a44.tar.lz
bukkit-b3f619f3c5ceb503c3649fe16a36b3fc90326a44.tar.xz
bukkit-b3f619f3c5ceb503c3649fe16a36b3fc90326a44.zip
Add isEnabled / setEnabled for HopperMinecart
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/entity/minecart/HopperMinecart.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/minecart/HopperMinecart.java b/src/main/java/org/bukkit/entity/minecart/HopperMinecart.java
index 5da9ce4d..03304319 100644
--- a/src/main/java/org/bukkit/entity/minecart/HopperMinecart.java
+++ b/src/main/java/org/bukkit/entity/minecart/HopperMinecart.java
@@ -7,4 +7,19 @@ import org.bukkit.inventory.InventoryHolder;
* Represents a Minecart with a Hopper inside it
*/
public interface HopperMinecart extends Minecart, InventoryHolder {
+
+ /**
+ * Checks whether or not this Minecart will pick up
+ * items into its inventory.
+ *
+ * @return true if the Minecart will pick up items
+ */
+ boolean isEnabled();
+
+ /**
+ * Sets whether this Minecart will pick up items.
+ *
+ * @param enabled new enabled state
+ */
+ void setEnabled(boolean enabled);
}