类 MobEffectEvent.Added
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.MobEffectEvent
net.minecraftforge.event.entity.living.MobEffectEvent.Added
- 封闭类:
MobEffectEvent
This event is fired when a new
MobEffectInstance
is added to an entity.
This event is also fired if an entity already has the effect but with a different duration or amplifier.
This event is not Cancelable
.
This event does not have a result.-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.event.entity.living.MobEffectEvent
MobEffectEvent.Added, MobEffectEvent.Applicable, MobEffectEvent.Expired, MobEffectEvent.Remove
从类继承的嵌套类/接口 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.MobEffectEvent
effectInstance
-
构造器概要
构造器构造器说明Added
(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source) -
方法概要
从类继承的方法 net.minecraftforge.event.entity.living.LivingEvent
getEntity
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
oldEffectInstance
-
source
-
-
构造器详细资料
-
Added
public Added(LivingEntity living, MobEffectInstance oldEffectInstance, MobEffectInstance newEffectInstance, Entity source)
-
-
方法详细资料
-
getEffectInstance
- 覆盖:
getEffectInstance
在类中MobEffectEvent
- 返回:
- the added
MobEffectInstance
. This is the unmerged MobEffectInstance if the old MobEffectInstance is not null.
-
getOldEffectInstance
- 返回:
- the old
MobEffectInstance
. This can be null if the entity did not have an effect of this kind before.
-
getEffectSource
- 返回:
- the entity source of the effect, or
null
if none exists
-