Class BrainEvent
java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.BrainEvent
- Direct Known Subclasses:
MemoryEvent, RestrictionSetEvent
Represents an Event related to the Brain
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBrainEvent(@NotNull EntityBrain brain) Construct a BrainEventprotectedBrainEvent(@NotNull EntityBrain brain, boolean async) Construct a BrainEvent -
Method Summary
Modifier and TypeMethodDescriptionfinal EntityBraingetBrain()Gets the EntityBrain involved in this event.static HandlerListGets this BrainEvent's Handlers.Gets this BrainEvent's Handlers.Methods inherited from class Event
getEventName, isAsynchronous
-
Constructor Details
-
BrainEvent
Construct a BrainEvent- Parameters:
brain- EntityBrain involved
-
BrainEvent
Construct a BrainEvent- Parameters:
brain- EntityBrain involvedasync- true if async, else false
-
-
Method Details
-
getHandlers
Gets this BrainEvent's Handlers.- Specified by:
getHandlersin classEvent- Returns:
- Handlers
-
getHandlerList
-
getBrain
Gets the EntityBrain involved in this event.- Returns:
- EntityBrain involved
-