Fix some Firing Script Behavior for Energy Projectiles

This commit is contained in:
Kam committed 2026-03-07 15:30:11 -05:00
1 parent 5eb98d172e
commit 6faa544f6f
6 files changed
+133 -15

No files matched your search

@@ -3,10 +3,18 @@ package noppes.npcs.api.entity;
import net.minecraft.entity.Entity;
/**
* Represents an energy laser entity - a sweeping beam that follows the caster's look vector.
* A continuous laser beam that extends outward from its origin along a direction vector.
* <p>
* 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)}.
* <p>
* 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<T extends Entity> extends IEnergyProjectile<T> {
/** Width of the laser beam. */
float getLaserWidth();
void setLaserWidth(float width);