Package fr.skytasul.guardianbeam
Class Laser.CrystalLaser
java.lang.Object
fr.skytasul.guardianbeam.Laser
fr.skytasul.guardianbeam.Laser.CrystalLaser
- Enclosing class:
- Laser
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.skytasul.guardianbeam.Laser
Laser.CrystalLaser, Laser.GuardianLaser, Laser.LaserType, Laser.Packets, Laser.ReflectiveConsumer<T> -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCrystalLaser(org.bukkit.Location start, org.bukkit.Location end, int duration, int distance) Creates a new Ender Crystal Laser instance -
Method Summary
Modifier and TypeMethodDescriptionGets laser type.voidmoveEnd(org.bukkit.Location location) Instantly moves the end of the laser to the location provided.voidmoveStart(org.bukkit.Location location) Instantly moves the start of the laser to the location provided.protected voidsendDestroyPackets(org.bukkit.entity.Player p) protected voidsendStartPackets(org.bukkit.entity.Player p, boolean hasSeen) Methods inherited from class fr.skytasul.guardianbeam.Laser
durationInTicks, executeEnd, getEnd, getStart, isCloseEnough, isStarted, moveEnd, moveFakeEntity, moveStart, start, stop
-
Constructor Details
-
CrystalLaser
public CrystalLaser(org.bukkit.Location start, org.bukkit.Location end, int duration, int distance) throws ReflectiveOperationException Creates a new Ender Crystal Laser instance- Parameters:
start- Location where laser will starts. The Crystal laser do not handle decimal number, it will be rounded to blocks.end- Location where laser will ends. The Crystal laser do not handle decimal number, it will be rounded to blocks.duration- Duration of laser in seconds (-1 if infinite)distance- Distance where laser will be visible (-1 if infinite)- Throws:
ReflectiveOperationException- if a reflection exception occurred during Laser creation- See Also:
-
-
Method Details
-
getLaserType
Description copied from class:LaserGets laser type.- Specified by:
getLaserTypein classLaser- Returns:
- LaserType enum constant of this laser
-
sendStartPackets
protected void sendStartPackets(org.bukkit.entity.Player p, boolean hasSeen) throws ReflectiveOperationException - Specified by:
sendStartPacketsin classLaser- Throws:
ReflectiveOperationException
-
sendDestroyPackets
- Specified by:
sendDestroyPacketsin classLaser- Throws:
ReflectiveOperationException
-
moveStart
Description copied from class:LaserInstantly moves the start of the laser to the location provided.- Specified by:
moveStartin classLaser- Parameters:
location- New start location- Throws:
ReflectiveOperationException- if a reflection exception occurred during laser moving
-
moveEnd
Description copied from class:LaserInstantly moves the end of the laser to the location provided.- Specified by:
moveEndin classLaser- Parameters:
location- New end location- Throws:
ReflectiveOperationException- if a reflection exception occurred during laser moving
-