mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-09-29 23:57:28 +02:00
Clean up some comments.
This commit is contained in:
parent
e6f81b01d6
commit
5b19404c13
@ -178,9 +178,9 @@ public class MVPlayerListener extends PlayerListener {
|
||||
* <p/>
|
||||
* The return is a little backwards, and will return a value safe for event.setCancelled.
|
||||
*
|
||||
* @param fromWorld
|
||||
* @param toWorld
|
||||
* @param player
|
||||
* @param fromWorld The MultiverseWorld they are in.
|
||||
* @param toWorld The MultiverseWorld they want to go to.
|
||||
* @param player The player that wants to travel.
|
||||
*
|
||||
* @return True if they can't go to the world, False if they can.
|
||||
*/
|
||||
|
@ -31,22 +31,6 @@ public class SafeTTeleporter {
|
||||
this.bs = new BlockSafety();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will be specific to beds, and check on top of the bed then around it.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Location getSafeBedDestination(Location bedLocation) {
|
||||
Location idealLocation = bedLocation;
|
||||
idealLocation.setY(idealLocation.getY() + 1);
|
||||
idealLocation.setX(idealLocation.getX() + .5);
|
||||
idealLocation.setZ(idealLocation.getZ() + .5);
|
||||
if (this.bs.playerCanSpawnHereSafely(idealLocation)) {
|
||||
return bedLocation;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Location getSafeLocation(Location l) {
|
||||
return this.getSafeLocation(l, 6, 9);
|
||||
}
|
||||
@ -112,7 +96,7 @@ public class SafeTTeleporter {
|
||||
* For my crappy algorithm, radius MUST be odd
|
||||
*
|
||||
* @param l
|
||||
* @param radius
|
||||
* @param diameter
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ -196,7 +180,7 @@ public class SafeTTeleporter {
|
||||
* Safely teleport the entity to the MVDestination. This will perform checks to see if the place is safe, and if
|
||||
* it's not, will adjust the final destination accordingly.
|
||||
*
|
||||
* @param temeporter Person who performed the teleport command.
|
||||
* @param teleporter Person who performed the teleport command.
|
||||
* @param teleportee Entity to teleport
|
||||
* @param d Destination to teleport them to
|
||||
*
|
||||
@ -229,7 +213,7 @@ public class SafeTTeleporter {
|
||||
* see if the place is safe, and if
|
||||
* it's not, will adjust the final destination accordingly.
|
||||
*
|
||||
* @param temeporter Person who issued the teleport command.
|
||||
* @param teleporter Person who issued the teleport command.
|
||||
* @param teleportee Entity to teleport.
|
||||
* @param location Location to teleport them to.
|
||||
* @param safely Should the destination be checked for safety before teleport?
|
||||
|
Loading…
Reference in New Issue
Block a user