public class BrewingStandFuelEvent extends BlockEvent implements Cancellable
Event.Resultblock| 构造器和说明 |
|---|
BrewingStandFuelEvent(Block brewingStand,
ItemStack fuel,
int fuelPower) |
| 限定符和类型 | 方法和说明 |
|---|---|
ItemStack |
getFuel()
Gets the ItemStack of the fuel before the amount was subtracted.
|
int |
getFuelPower()
Gets the fuel power for this fuel.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isCancelled()
获取这个事件是否被取消.一个被取消的事件不会在服务器里被执行,但是仍然会传递事件到其他插件。
|
boolean |
isConsuming()
Gets whether the brewing stand's fuel will be reduced / consumed or not.
|
void |
setCancelled(boolean cancel)
取消这个事件.
|
void |
setConsuming(boolean consuming)
Sets whether the brewing stand's fuel will be reduced / consumed or not.
|
void |
setFuelPower(int fuelPower)
Sets the fuel power for this fuel.
|
getBlockgetEventName, isAsynchronouspublic ItemStack getFuel()
public int getFuelPower()
public void setFuelPower(int fuelPower)
fuelPower - the fuel power for this fuelpublic boolean isConsuming()
public void setConsuming(boolean consuming)
consuming - whether the fuel will be reduced or notpublic boolean isCancelled()
Cancellable原文:Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins
isCancelled 在接口中 Cancellablepublic void setCancelled(boolean cancel)
Cancellable原文:Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
setCancelled 在接口中 Cancellablecancel - 如果你想取消这个事件,则为truepublic HandlerList getHandlers()
getHandlers 在类中 Eventpublic static HandlerList getHandlerList()