mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
#554: PoweredMinecart - add getter/setter for fuel
By: Shane Bee <shanebolenback@me.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user