net.minecraft.entity.effect

class WeavingStatusEffect

extends StatusEffect

All mapped superinterfaces:

ToggleableFeature

net.minecraft.world.effect.WeavingMobEffect
net.minecraft.class_9458
net.minecraft.entity.effect.WeavingStatusEffect

Field summary

Modifier and TypeField
private final ToIntFunction<Random>
maxCobwebs
field_50123
cobwebChanceFunction

Constructor summary

ModifierConstructor
protected (StatusEffectCategory category, int color, ToIntFunction<Random> cobwebChanceFunction)

Method summary

Modifier and TypeMethod
public void
onMobRemoved(ServerLevel level, LivingEntity mob, int amplifier, Entity$RemovalReason reason)
method_58617(class_3218 arg0, class_1309 arg1, int arg2, class_1297$class_5529 arg3)
onEntityRemoval(ServerWorld arg0, LivingEntity arg1, int arg2, Entity$RemovalReason arg3)
private void
spawnCobwebsRandomlyAround(ServerLevel level, RandomSource random, BlockPos pos)
method_58628(class_3218 arg0, class_5819 arg1, class_2338 arg2)
tryPlaceCobweb(ServerWorld world, Random random, BlockPos pos)