net.minecraft.entity.effect

class InfestedStatusEffect

extends StatusEffect

All mapped superinterfaces:

ToggleableFeature

net.minecraft.world.effect.InfestedMobEffect
net.minecraft.class_9455
net.minecraft.entity.effect.InfestedStatusEffect

Field summary

Modifier and TypeField
private final float
chanceToSpawn
field_50112
silverfishChance
private final ToIntFunction<Random>
spawnedCount
field_50113
silverfishCountFunction

Constructor summary

ModifierConstructor
protected (StatusEffectCategory category, int color, float silverfishChance, ToIntFunction<Random> silverfishCountFunction)

Method summary

Modifier and TypeMethod
public void
onMobHurt(ServerLevel level, LivingEntity mob, int amplifier, DamageSource source, float damage)
method_58614(class_3218 arg0, class_1309 arg1, int arg2, class_1282 arg3, float arg4)
onEntityDamage(ServerWorld arg0, LivingEntity arg1, int arg2, DamageSource arg3, float arg4)
private void
spawnSilverfish(ServerLevel level, LivingEntity mob, double x, double y, double z)
method_58615(class_3218 arg0, class_1309 arg1, double arg2, double arg3, double arg4)
spawnSilverfish(ServerWorld world, LivingEntity entity, double x, double y, double z)