Class ScorchingMobEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
net.frozenblock.wilderwild.entity.effect.ScorchingMobEffect
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement
public class ScorchingMobEffect
extends net.minecraft.world.effect.MobEffect
-
Field Summary
Fields inherited from class net.minecraft.world.effect.MobEffect
CODEC, STREAM_CODECFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
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 TypeMethodDescriptionvoidonMobHurt(net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.entity.LivingEntity livingEntity, int i, net.minecraft.world.damagesource.DamageSource damageSource, float f) voidonMobRemoved(net.minecraft.server.level.ServerLevel level, 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, applyEffectTick, applyInstantenousEffect, createModifiers, createParticleOptions, getBlendDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getOrCreateDescriptionId, isBeneficial, isInstantenous, onEffectAdded, onEffectStarted, removeAttributeModifiers, requiredFeatures, requiredFeatures, setBlendDuration, shouldApplyEffectTickThisTick, withSoundOnAddedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
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
-
onMobHurt
public void onMobHurt(net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.entity.LivingEntity livingEntity, int i, net.minecraft.world.damagesource.DamageSource damageSource, float f) - Overrides:
onMobHurtin classnet.minecraft.world.effect.MobEffect
-
onMobRemoved
public void onMobRemoved(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.LivingEntity entity, int amplifier, net.minecraft.world.entity.Entity.RemovalReason reason) - Overrides:
onMobRemovedin classnet.minecraft.world.effect.MobEffect
-