EntityCombustEvent
EntityCombustEvent
=> org.bukkit.event.Event
=> org.bukkit.event.entity.EntityEvent
=> org.bukkit.event.entity.EntityCombustEvent
Called when an entity combusts.If an Entity Combust event is cancelled, the entity will not combust.当实体燃烧时触发。如果本事件被取消,则涉事实体不会燃烧。
方法声明: public boolean isCancelled()
方法签名: ()Z
方法声明: public void setCancelled(boolean cancel)
方法签名: (Z)V
方法声明: public int getDuration()
方法签名: ()I
@return the amount of time (in seconds) the combustee should be alightfor(译注:该方法用于获取实体将持续燃烧的时长(以秒为单位)。此句缺漏。)@return 实体将持续燃烧的时长(以秒为单位)。
方法声明: public void setDuration(int duration)
方法签名: (I)V
The number of seconds the combustee should be alight for.This value will only ever increase the combustion time, not decreaseexisting combustion times.@param duration the time in seconds to be alight for.该方法用于设置实体将持续燃烧的时长,以秒为单位。本方法只能增加实体燃烧的时间,无法使燃烧时间减少。@param duration 实体将持续燃烧的时长,以秒为单位。
方 法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;