Makes some small comment adjustments
This commit is contained in:
parent
f16a7089f4
commit
0ab6cb52c0
@ -4,7 +4,7 @@ import org.bukkit.Chunk;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requests the unloading of a chunk which has been previously loaded by the Stargate plugin
|
* Represents a requests for the unloading of a chunk which has been previously loaded by the Stargate plugin
|
||||||
*/
|
*/
|
||||||
public class ChunkUnloadRequest implements Comparable<ChunkUnloadRequest> {
|
public class ChunkUnloadRequest implements Comparable<ChunkUnloadRequest> {
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ public class ChunkUnloadRequest implements Comparable<ChunkUnloadRequest> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the time system nano time denoting at which time the unload request should be executed
|
* Gets the system nano time denoting at which time the unload request should be executed
|
||||||
*
|
*
|
||||||
* @return <p>The system nano time denoting when the chunk is to be unloaded</p>
|
* @return <p>The system nano time denoting when the chunk is to be unloaded</p>
|
||||||
*/
|
*/
|
||||||
@ -48,6 +48,7 @@ public class ChunkUnloadRequest implements Comparable<ChunkUnloadRequest> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(@NotNull ChunkUnloadRequest otherRequest) {
|
public int compareTo(@NotNull ChunkUnloadRequest otherRequest) {
|
||||||
|
//Prioritize requests based on time until unload
|
||||||
return unloadNanoTime.compareTo(otherRequest.unloadNanoTime);
|
return unloadNanoTime.compareTo(otherRequest.unloadNanoTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,6 +5,10 @@ import org.bukkit.entity.Player;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This class represents a player teleporting from the end to the over-world using an artificial end portal
|
* This class represents a player teleporting from the end to the over-world using an artificial end portal
|
||||||
|
*
|
||||||
|
* <p>This is necessary because a player entering an end portal in the end is a special case. Instead of being
|
||||||
|
* teleported, the player is respawned. Because of this, the teleportation needs to be saved and later used to hijack
|
||||||
|
* the position of where the player is to respawn.</p>
|
||||||
*/
|
*/
|
||||||
public class FromTheEndTeleportation {
|
public class FromTheEndTeleportation {
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ public class RelativeBlockVector {
|
|||||||
/**
|
/**
|
||||||
* Adds a value to one of the properties of this relative block vector
|
* Adds a value to one of the properties of this relative block vector
|
||||||
*
|
*
|
||||||
* @param propertyToAddTo <p>The property to change</p>
|
* @param propertyToAddTo <p>The property to add to</p>
|
||||||
* @param valueToAdd <p>The value to add to the property</p>
|
* @param valueToAdd <p>The value to add to the property (negative to move in the opposite direction)</p>
|
||||||
* @return <p>A new relative block vector with the property altered</p>
|
* @return <p>A new relative block vector with the property altered</p>
|
||||||
*/
|
*/
|
||||||
public RelativeBlockVector addToVector(Property propertyToAddTo, int valueToAdd) {
|
public RelativeBlockVector addToVector(Property propertyToAddTo, int valueToAdd) {
|
||||||
@ -61,7 +61,7 @@ public class RelativeBlockVector {
|
|||||||
/**
|
/**
|
||||||
* Gets the distance to the right relative to the origin
|
* Gets the distance to the right relative to the origin
|
||||||
*
|
*
|
||||||
* @return The distance to the right relative to the origin
|
* @return <p>The distance to the right relative to the origin</p>
|
||||||
*/
|
*/
|
||||||
public int getRight() {
|
public int getRight() {
|
||||||
return right;
|
return right;
|
||||||
@ -70,7 +70,7 @@ public class RelativeBlockVector {
|
|||||||
/**
|
/**
|
||||||
* Gets the distance downward relative to the origin
|
* Gets the distance downward relative to the origin
|
||||||
*
|
*
|
||||||
* @return The distance downward relative to the origin
|
* @return <p>The distance downward relative to the origin</p>
|
||||||
*/
|
*/
|
||||||
public int getDepth() {
|
public int getDepth() {
|
||||||
return depth;
|
return depth;
|
||||||
@ -79,7 +79,7 @@ public class RelativeBlockVector {
|
|||||||
/**
|
/**
|
||||||
* Gets the distance outward relative to the origin
|
* Gets the distance outward relative to the origin
|
||||||
*
|
*
|
||||||
* @return The distance outward relative to the origin
|
* @return <p>The distance outward relative to the origin</p>
|
||||||
*/
|
*/
|
||||||
public int getDistance() {
|
public int getDistance() {
|
||||||
return distance;
|
return distance;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user