package noppes.npcs.api.entity; import net.minecraft.entity.Entity; /** * A continuous laser beam that extends outward from its origin along a direction vector. *
* Unlike other projectiles, lasers don't move through the world — they extend from their * origin point along a direction, hitting everything in their path up to {@link #getMaxLength()}. * The direction can be set explicitly via {@link #setDirection(double, double, double)}. *
* The coordinate-based {@code fireAt(x, y, z)} calculates and sets the direction vector
* automatically, then uses the laser's internal launch sequence.
*/
public interface IEnergyLaser