mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
#554: PoweredMinecart - add getter/setter for fuel
This commit is contained in:
parent
ccb9614e95
commit
b45a7eedcf
1 changed files with 14 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue