mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Add isEnabled / setEnabled for HopperMinecart
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
672cae688f
commit
032db7ea4f
1 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue