diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/entity/minecart/HopperMinecart.java | 15 |
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); } |