Class ScorchingMobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
net.frozenblock.wilderwild.entity.effect.ScorchingMobEffect
public class ScorchingMobEffect
extends net.minecraft.world.effect.MobEffect
-
Constructor Summary
ConstructorsConstructorDescriptionScorchingMobEffect(net.minecraft.world.effect.MobEffectCategory type, int color, float chanceToScorch, ToIntFunction<net.minecraft.util.RandomSource> toIntFunction, ToIntFunction<net.minecraft.util.RandomSource> maxFires) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier) booleanisDurationEffectTick(int duration, int amplifier) voidonMobHurt(@NotNull net.minecraft.world.entity.LivingEntity livingEntity, int amplifier, net.minecraft.world.damagesource.DamageSource damageSource, float f) voidonMobRemoved(net.minecraft.world.entity.LivingEntity entity, int amplifier, net.minecraft.world.entity.Entity.RemovalReason reason) Methods inherited from class net.minecraft.world.effect.MobEffect
addAttributeModifier, addAttributeModifiers, applyInstantenousEffect, byId, createFactorData, getAttributeModifiers, getAttributeModifierValue, getCategory, getColor, getDescriptionId, getDisplayName, getId, getIdFromNullable, getOrCreateDescriptionId, isBeneficial, isInstantenous, removeAttributeModifiers, setFactorDataFactory
-
Constructor Details
-
ScorchingMobEffect
public ScorchingMobEffect(net.minecraft.world.effect.MobEffectCategory type, int color, float chanceToScorch, ToIntFunction<net.minecraft.util.RandomSource> toIntFunction, ToIntFunction<net.minecraft.util.RandomSource> maxFires)
-
-
Method Details
-
applyEffectTick
public void applyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier) - Overrides:
applyEffectTickin classnet.minecraft.world.effect.MobEffect
-
onMobHurt
public void onMobHurt(@NotNull @NotNull net.minecraft.world.entity.LivingEntity livingEntity, int amplifier, net.minecraft.world.damagesource.DamageSource damageSource, float f) -
isDurationEffectTick
public boolean isDurationEffectTick(int duration, int amplifier) - Overrides:
isDurationEffectTickin classnet.minecraft.world.effect.MobEffect
-
onMobRemoved
public void onMobRemoved(net.minecraft.world.entity.LivingEntity entity, int amplifier, net.minecraft.world.entity.Entity.RemovalReason reason)
-