Interface LightningEvent.Strike

Enclosing interface:
LightningEvent

public static interface LightningEvent.Strike
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStrike(net.minecraft.world.entity.LightningBolt bolt, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos, List<net.minecraft.world.entity.Entity> toStrike)
    Invoked after the lightning has gathered a list of entities to strike.
  • Method Details

    • onStrike

      void onStrike(net.minecraft.world.entity.LightningBolt bolt, net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 pos, List<net.minecraft.world.entity.Entity> toStrike)
      Invoked after the lightning has gathered a list of entities to strike.
      Parameters:
      bolt - The lightning bolt.
      level - The level the lighting is spawned in.
      pos - The position the lightning strikes.
      toStrike - A list of all entities the lightning affects.