Class LivingMakeBrainEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingMakeBrainEvent
LivingMakeBrainEvent is fired whenever a new
To access the internal
The BrainBuilder will initially contain all the state found in the original Brain instance.
After this event is posted, a fresh Brain instance will be created using the encapsulated state found in the BrainBuilder and replace the previously created Brain instance for the entity.
This event is fired via the
This event is not
This event does not have a result.
This event is fired on the
Brain
instance is created using LivingEntity.makeBrain(Dynamic)
.To access the internal
BrainBuilder
, call getTypedBrainBuilder(LivingEntity)
using the downcasted LivingEntity
obtained from LivingEvent.getEntity()
.The BrainBuilder will initially contain all the state found in the original Brain instance.
After this event is posted, a fresh Brain instance will be created using the encapsulated state found in the BrainBuilder and replace the previously created Brain instance for the entity.
This event is fired via the
ForgeHooks.onLivingMakeBrain(LivingEntity, Brain, Dynamic)
.This event is not
Cancelable
.This event does not have a result.
Event.HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<E extends LivingEntity>
BrainBuilder<E> getTypedBrainBuilder
(E ignoredEntity) Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
brainBuilder
-
-
Constructor Details
-
LivingMakeBrainEvent
-
-
Method Details
-
getTypedBrainBuilder
-