Class MobEffectConfig
java.lang.Object
net.darkhax.msmlegacy.config.types.MobEffectConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean -
Constructor Summary
ConstructorsConstructorDescriptionMobEffectConfig(net.minecraft.world.effect.MobEffect effect, int amplifier, int duration) MobEffectConfig(net.minecraft.world.effect.MobEffect effect, int amplifier, int duration, float chance) MobEffectConfig(net.minecraft.world.effect.MobEffect effect, LevelScaledInt amplifier, LevelScaledInt duration, LevelScaledFloat chance) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffect(net.minecraft.world.entity.Entity target, int level)
-
Field Details
-
enabled
@Expose @SerializedName("enabled") public boolean enabled -
chance
-
amplifier
-
duration
-
-
Constructor Details
-
MobEffectConfig
public MobEffectConfig(net.minecraft.world.effect.MobEffect effect, int amplifier, int duration) -
MobEffectConfig
public MobEffectConfig(net.minecraft.world.effect.MobEffect effect, int amplifier, int duration, float chance) -
MobEffectConfig
public MobEffectConfig(net.minecraft.world.effect.MobEffect effect, LevelScaledInt amplifier, LevelScaledInt duration, LevelScaledFloat chance)
-
-
Method Details
-
applyEffect
public void applyEffect(net.minecraft.world.entity.Entity target, int level)
-