Adds nullability annotations for all methods Fixes some nullability problems and inconsistencies Gets rid of RelativeBlockVector's inner class Changes RelativeBlockVector to a record Simplifies FromTheEndTeleportation's storage, and makes it into a minimal record Removes the putStringInList method Gets rid of some primitive list usage Fixes some incorrect method accessibility Removes some redundancy in PortalOption
21 lines
415 B
Java
21 lines
415 B
Java
package net.knarcraft.stargate.event;
|
|
|
|
import org.bukkit.Location;
|
|
import org.bukkit.event.Cancellable;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/**
|
|
* A generic teleportation event
|
|
*/
|
|
public interface StargateTeleportEvent extends Cancellable {
|
|
|
|
/**
|
|
* Return the location of the players exit point
|
|
*
|
|
* @return <p>Location of the exit point</p>
|
|
*/
|
|
@NotNull
|
|
Location getExit();
|
|
|
|
}
|