接口 ServerEvents.LivingEntity.Effect.Remove
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
-
方法概要
修饰符和类型方法说明booleanremoveEffect(net.minecraft.world.entity.LivingEntity entity, @Nullable net.minecraft.world.effect.MobEffectInstance effect) Called when an effect is about to be removed from an entity.
-
方法详细资料
-
removeEffect
boolean removeEffect(@NotNull net.minecraft.world.entity.LivingEntity entity, @Nullable @Nullable net.minecraft.world.effect.MobEffectInstance effect) Called when an effect is about to be removed from an entity.- 参数:
entity- the entity from which the effect will be removedeffect- the effect instance to be removed, ornullif no effect is specified- 返回:
trueif the effect should be removed, otherwisefalse
-