Class MemoryEvent
java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.BrainEvent
me.gamercoder215.mobchip.bukkit.events.memory.MemoryEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
MemoryChangeEvent
Represents an Event involving a Memory
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionMemoryEvent(@NotNull EntityBrain brain, EntityMemory<?> memory) Constructs a MemoryEvent. -
Method Summary
Modifier and TypeMethodDescriptionEntityMemory<?> Gets the memory involved in this MemoryEvent.booleanvoidsetCancelled(boolean cancel) voidsetMemory(EntityMemory<?> memory) Sets the memory involved in this MemoryEvent.Methods inherited from class BrainEvent
getBrain, getHandlerList, getHandlersMethods inherited from class Event
getEventName, isAsynchronous
-
Constructor Details
-
MemoryEvent
Constructs a MemoryEvent.- Parameters:
brain- EntityBrain Involvedmemory- EntityMemory involved
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getMemory
Gets the memory involved in this MemoryEvent.- Returns:
- memory involved
-
setMemory
Sets the memory involved in this MemoryEvent.- Parameters:
memory- memory involved
-