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

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

    public interface IEnergySweeper<T extends net.minecraft.entity.Entity>
    extends IEnergyAbility<T>
    Entity-level interface for sweeper beam entities. Created via IEnergyHandler.createSweeper(). Configure properties, then call spawn() to place in the world.
    • Method Detail

      • getBeamLength

        float getBeamLength()
        Returns:
        Length of the sweeping beam in blocks.
      • setBeamLength

        void setBeamLength​(float length)
        Parameters:
        length - Beam length in blocks.
      • getBeamWidth

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

        void setBeamWidth​(float width)
        Parameters:
        width - Beam width in blocks.
      • getBeamHeight

        float getBeamHeight()
        Returns:
        Height of the sweeping beam in blocks.
      • setBeamHeight

        void setBeamHeight​(float height)
        Parameters:
        height - Beam height in blocks.
      • getSweepSpeed

        float getSweepSpeed()
        Returns:
        Rotation speed of the sweep in degrees per tick.
      • setSweepSpeed

        void setSweepSpeed​(float degreesPerTick)
        Parameters:
        degreesPerTick - Sweep rotation speed in degrees per tick.
      • getNumberOfRotations

        int getNumberOfRotations()
        Returns:
        Number of full rotations the beam completes before stopping.
      • setNumberOfRotations

        void setNumberOfRotations​(int rotations)
        Parameters:
        rotations - Number of full rotations.
      • isLockOnTarget

        boolean isLockOnTarget()
        Returns:
        Whether the beam pivot tracks the target instead of rotating freely.
      • setLockOnTarget

        void setLockOnTarget​(boolean lock)
        Parameters:
        lock - Whether the beam locks on to the target.
      • getDamage

        float getDamage()
        Returns:
        Damage dealt per hit to entities caught in the beam.
      • setDamage

        void setDamage​(float damage)
        Parameters:
        damage - Damage per hit.
      • getDamageInterval

        int getDamageInterval()
        Returns:
        Interval in ticks between damage applications to the same target.
      • setDamageInterval

        void setDamageInterval​(int ticks)
        Parameters:
        ticks - Damage interval in ticks.
      • isPiercing

        boolean isPiercing()
        Returns:
        Whether the beam can hit through multiple targets.
      • setPiercing

        void setPiercing​(boolean piercing)
        Parameters:
        piercing - Whether the beam pierces through targets.
      • spawn

        void spawn()
        Spawn this sweeper entity into the world.