public class BrewingStandFuelEvent extends BlockEvent implements Cancellable
Event.Result
block
构造器和说明 |
---|
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.
|
getBlock
getEventName, isAsynchronous
public 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
在接口中 Cancellable
public 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
在接口中 Cancellable
cancel
- 如果你想取消这个事件,则为truepublic HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()