Class NPCCombustEvent

All Implemented Interfaces:
Direct Known Subclasses:
NPCCombustByBlockEvent, NPCCombustByEntityEvent

public class NPCCombustEvent extends NPCEvent implements Cancellable
  • Constructor Details

  • Method Details

    • getDuration

      public int getDuration()
      the amount of time (in seconds) the combustee should be alight for
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable
    • setDuration

      public void setDuration(int duration)
      The number of seconds the combustee should be alight for.

      This value will only ever increase the combustion time, not decrease existing combustion times.

      duration - the time in seconds to be alight for.
    • getHandlerList

      public static HandlerList getHandlerList()