BrewingStandFuelEvent
BrewingStandFuelEvent
=> org.bukkit.event.Event
=> org.bukkit.event.block.BlockEvent
=> org.bukkit.event.inventory.BrewingStandFuelEvent
Called when an ItemStack is about to increase the fuel level of a brewingstand.当酿造台的燃料值由于消耗了燃料物品堆而增加时触发。译注:酿造台消耗烈焰粉获得燃料值。
方法声明: public ItemStack getFuel()
方法签名: ()Lorg/bukkit/inventory/ItemStack;
Gets the ItemStack of the fuel before the amount was subtracted.@return the fuel ItemStack该方法用于获取数量减少前的燃料物品堆。@return 涉事燃料物品堆。
方法声明: public int getFuelPower()
方法签名: ()I
Gets the fuel power for this fuel. Each unit of power can fuel onebrewing operation.@return the fuel power for this fuel该方法用于获取燃料物品堆本次提供的燃料值。每一次酿造消耗一单位燃料值。@return 涉事燃料物品堆本次提供的燃料值。译注:在原版游戏中仅有烈焰粉一种物品可作燃料,因此本方法的返回值默认为二十。该返回值可能被另外的插件以setFuelPower(int fuelPower)
方法修改。
方法声明: public void setFuelPower(int fuelPower)
方法签名: (I)V
Sets the fuel power for this fuel. Each unit of power can fuel onebrewing operation.@param fuelPower the fuel power for this fuel该方法用于设置燃料物品堆本次提供的燃料值。每一次酿造消耗一单位燃料值。@param fuelPower 燃料物品堆本次提供的燃料值。译注:在原版游戏中仅有烈焰粉一种物品可作燃料,因此getFuelPower()
方法的返回值默认为二十。
方法声明: public boolean isConsuming()
方法签名: ()Z
Gets whether the brewing stand's fuel will be reduced / consumed or not.@return whether the fuel will be reduced or not该方法用于获取燃料物品堆是否将被消耗。@return 涉事燃料物品堆是否将被消耗。译注:如果本方法返回false
且事件未被取消,则酿造台燃料值仍会增加,但燃料物品堆数量不会减少。
方法声明: public void setConsuming(boolean consuming)
方法签名: (Z)V
Sets whether the brewing stand's fuel will be reduced / consumed or not.@param consuming whether the fuel will be reduced or not该方法用于设置燃料物品堆是否将被消耗。@param consuming 涉事燃料物品堆是否将被消耗。译注:如果本方法参数传入false
且事件未被取消,则酿造台燃料值仍会增加,但燃料物品堆 数量不会减少。
方法声明: public boolean isCancelled()
方法签名: ()Z
方法声明: public void setCancelled(boolean cancel)
方法签名: (Z)V
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago