#554: PoweredMinecart - add getter/setter for fuel

This commit is contained in:
Shane Bee 2020-10-13 18:59:25 +11:00 committed by md_5
parent ccb9614e95
commit b45a7eedcf
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -7,4 +7,18 @@ import org.bukkit.entity.Minecart;
* player deposits {@link org.bukkit.Material#COAL fuel}.
*/
public interface PoweredMinecart extends Minecart {
/**
* Get the number of ticks until the minecart runs out of fuel.
*
* @return Number of ticks until the minecart runs out of fuel
*/
public int getFuel();
/**
* Set the number of ticks until the minecart runs out of fuel.
*
* @param fuel Number of ticks until the minecart runs out of fuel
*/
public void setFuel(int fuel);
}