Gets rid of the rest of the modX and modY usages, and removes some unused code

This commit is contained in:
2021-10-08 18:23:42 +02:00
parent a68dc4b464
commit fff4d8d78b
20 changed files with 150 additions and 279 deletions

View File

@ -8,6 +8,7 @@ import org.jetbrains.annotations.NotNull;
/**
* This event should be called whenever a player opens a stargate
*/
@SuppressWarnings({"unused"})
public class StargateOpenEvent extends StargatePlayerEvent {
private static final HandlerList handlers = new HandlerList();

View File

@ -6,6 +6,7 @@ import org.bukkit.entity.Player;
/**
* An abstract event describing any stargate event where a player is involved
*/
@SuppressWarnings("unused")
public abstract class StargatePlayerEvent extends StargateEvent {
private final Player player;

View File

@ -41,9 +41,9 @@ public class StargatePortalEvent extends StargatePlayerEvent {
}
/**
* Return the destination gate
* Return the destination portal
*
* @return destination gate
* @return <p>The destination portal</p>
*/
public Portal getDestination() {
return destination;
@ -52,14 +52,14 @@ public class StargatePortalEvent extends StargatePlayerEvent {
/**
* Return the location of the players exit point
*
* @return org.bukkit.Location Location of the exit point
* @return <p>Location of the exit point</p>
*/
public Location getExit() {
return exit;
}
/**
* Set the location of the players exit point
* Set the location of the player's exit point
*/
public void setExit(Location loc) {
this.exit = loc;