Class Laser

java.lang.Object
org.kingdoms.utils.Laser

public final class Laser extends Object
A whole class to create Guardian Beams by reflection. Inspired by the API GuardianBeamAPI This stimulates the guardian attacking squid pattern.

1.9+

See Also:
  • Constructor Details

    • Laser

      public Laser(org.bukkit.Location start, Supplier<org.bukkit.Location> endLocationTracker, int duration, int distance) throws ReflectiveOperationException
      Create a Laser instance
      Parameters:
      start - Location where laser will starts
      endLocationTracker - Location where laser will ends
      duration - Duration of laser in seconds (-1 if infinite)
      distance - Distance where laser will be visible
      Throws:
      ReflectiveOperationException
  • Method Details

    • start

      public void start(org.bukkit.plugin.Plugin plugin)
    • destroy

      public void destroy(org.bukkit.entity.Player player)
    • clear

      public void clear()
    • stop

      public void stop()
    • moveStart

      public void moveStart(org.bukkit.Location location) throws ReflectiveOperationException
      Throws:
      ReflectiveOperationException
    • getStart

      public org.bukkit.Location getStart()
    • moveEnd

      public void moveEnd(Supplier<org.bukkit.Location> endLocationTracker) throws ReflectiveOperationException
      Throws:
      ReflectiveOperationException
    • callColorChange

      public void callColorChange()
    • isStarted

      public boolean isStarted()