#554: PoweredMinecart - add getter/setter for fuel

By: Shane Bee <shanebolenback@me.com>
This commit is contained in:
Bukkit/Spigot 2020-10-13 18:59:25 +11:00
parent fbccd65ba8
commit 32e338b513

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