类 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
.-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
从类继承的嵌套类/接口 net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraftforge.event.entity.living.LivingEvent
getEntity
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
brainBuilder
-
-
构造器详细资料
-
LivingMakeBrainEvent
-
-
方法详细资料
-
getTypedBrainBuilder
-