类 HealOrHarmMobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
net.minecraft.world.effect.InstantenousMobEffect
net.minecraft.world.effect.HealOrHarmMobEffect
- 所有已实现的接口:
FeatureElement
,IMobEffectExtension
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.effect.MobEffect
MobEffect.AttributeTemplate
-
字段概要
字段从类继承的字段 net.minecraft.world.effect.MobEffect
CODEC, STREAM_CODEC
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
applyEffectTick
(ServerLevel p_376486_, LivingEntity p_295255_, int p_295147_) void
applyInstantenousEffect
(ServerLevel p_376760_, Entity p_294574_, Entity p_295692_, LivingEntity p_296483_, int p_296095_, double p_295178_) 从类继承的方法 net.minecraft.world.effect.InstantenousMobEffect
isInstantenous, shouldApplyEffectTickThisTick
从类继承的方法 net.minecraft.world.effect.MobEffect
addAttributeModifier, addAttributeModifier, addAttributeModifiers, createModifiers, createParticleOptions, getBlendInDurationTicks, getBlendOutAdvanceTicks, getBlendOutDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getOrCreateDescriptionId, isBeneficial, onEffectAdded, onEffectStarted, onMobHurt, onMobRemoved, removeAttributeModifiers, requiredFeatures, requiredFeatures, setBlendDuration, setBlendDuration, withSoundOnAdded
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.neoforged.neoforge.common.extensions.IMobEffectExtension
getSortOrder
-
字段详细资料
-
isHarm
private final boolean isHarm
-
-
构造器详细资料
-
HealOrHarmMobEffect
-
-
方法详细资料
-
applyEffectTick
- 覆盖:
applyEffectTick
在类中MobEffect
-
applyInstantenousEffect
public void applyInstantenousEffect(ServerLevel p_376760_, @Nullable Entity p_294574_, @Nullable Entity p_295692_, LivingEntity p_296483_, int p_296095_, double p_295178_) - 覆盖:
applyInstantenousEffect
在类中MobEffect
-