Interface IEnergyBeam<T extends net.minecraft.entity.Entity>

  • All Superinterfaces:
    IEnergyAbility<T>, IEnergyProjectile<T>, IEntity<T>

    public interface IEnergyBeam<T extends net.minecraft.entity.Entity>
    extends IEnergyProjectile<T>
    A directional beam projectile with a trailing path and optional head orb.

    Beams travel forward from their origin, dealing damage along their length. They can optionally stay attached to their owner and follow the owner's movement.

    Beams use startFiring internally rather than startMoving — this is handled automatically by the fire methods.

    • Method Detail

      • getBeamWidth

        float getBeamWidth()
        Width of the beam trail.
        Returns:
        the beam width in blocks
      • setBeamWidth

        void setBeamWidth​(float width)
      • getHeadSize

        float getHeadSize()
      • setHeadSize

        void setHeadSize​(float size)
      • isAttachedToOwner

        boolean isAttachedToOwner()
      • setAttachedToOwner

        void setAttachedToOwner​(boolean attached)
      • shouldRenderTailOrb

        boolean shouldRenderTailOrb()