Class BrainEvent

java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.BrainEvent
Direct Known Subclasses:
MemoryEvent, RestrictionSetEvent

public abstract class BrainEvent extends Event
Represents an Event related to the Brain
  • Constructor Details

    • BrainEvent

      protected BrainEvent(@NotNull @NotNull EntityBrain brain)
      Construct a BrainEvent
      Parameters:
      brain - EntityBrain involved
    • BrainEvent

      protected BrainEvent(@NotNull @NotNull EntityBrain brain, boolean async)
      Construct a BrainEvent
      Parameters:
      brain - EntityBrain involved
      async - true if async, else false
  • Method Details

    • getHandlers

      public HandlerList getHandlers()
      Gets this BrainEvent's Handlers.
      Specified by:
      getHandlers in class Event
      Returns:
      Handlers
    • getHandlerList

      public static HandlerList getHandlerList()
      Gets this BrainEvent's Handlers.
      Returns:
      Handlers
    • getBrain

      public final EntityBrain getBrain()
      Gets the EntityBrain involved in this event.
      Returns:
      EntityBrain involved