mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 21:37:39 +01:00
#554: PoweredMinecart - add getter/setter for fuel
By: Shane Bee <shanebolenback@me.com>
This commit is contained in:
parent
fbccd65ba8
commit
32e338b513
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user