Package org.kingdoms.utils
Class Laser
java.lang.Object
org.kingdoms.utils.Laser
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 startsendLocationTracker- Location where laser will endsduration- 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
- 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()
-