Commits
Shane Bee authored and md_5 committed b45a7eedcfc
1 1 | package org.bukkit.entity.minecart; |
2 2 | |
3 3 | import org.bukkit.entity.Minecart; |
4 4 | |
5 5 | /** |
6 6 | * Represents a powered minecart. A powered minecart moves on its own when a |
7 7 | * player deposits {@link org.bukkit.Material#COAL fuel}. |
8 8 | */ |
9 9 | public interface PoweredMinecart extends Minecart { |
10 + | |
11 + | /** |
12 + | * Get the number of ticks until the minecart runs out of fuel. |
13 + | * |
14 + | * @return Number of ticks until the minecart runs out of fuel |
15 + | */ |
16 + | public int getFuel(); |
17 + | |
18 + | /** |
19 + | * Set the number of ticks until the minecart runs out of fuel. |
20 + | * |
21 + | * @param fuel Number of ticks until the minecart runs out of fuel |
22 + | */ |
23 + | public void setFuel(int fuel); |
10 24 | } |