13
0
geforkt von Mirrors/Paper

Add isEnabled / setEnabled for HopperMinecart

By: Matthew <stteg@hotmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2016-03-18 11:35:59 -04:00
Ursprung 672cae688f
Commit 032db7ea4f

Datei anzeigen

@ -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);
}