mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 18:39:42 -05:00
Add isEnabled / setEnabled for HopperMinecart
By: Matthew <stteg@hotmail.com>
This commit is contained in:
1 parent
672cae688f
commit
032db7ea4f
1 file changed
+15
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user