net.minecraft.world.effect

class InfestedMobEffect

extends MobEffect

All mapped superinterfaces:

FeatureElement

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

Field summary

Modifier and TypeField
private final float
c
chanceToSpawn
field_50112
silverfishChance
private final ToIntFunction<RandomSource>
d
spawnedCount
field_50113
silverfishCountFunction

Constructor summary

ModifierConstructor
protected (MobEffectCategory category, int color, float silverfishChance, ToIntFunction<RandomSource> silverfishCountFunction)

Method summary

Modifier and TypeMethod
public void
a(ash arg0, bwg arg1, int arg2, bua arg3, float arg4)
onMobHurt(ServerLevel arg0, LivingEntity arg1, int arg2, DamageSource arg3, float arg4)
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
a(ash arg0, bwg arg1, double arg2, double arg3, double arg4)
spawnSilverfish(ServerLevel arg0, LivingEntity arg1, double arg2, double arg3, double arg4)
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)