docs: Cleanup, grammar fixes, javadoc tweaks

This commit is contained in:
William committed 2023-05-11 16:46:35 +01:00
1 parent 679400c616
commit 1b6b8bb666
11 files changed
+14 -17

No files matched your search

@@ -25,9 +25,9 @@ package net.william278.huskhomes.event;
public interface Cancellable extends Event {
/**
* Set whether the event should be cancelled
* Set whether the event should be canceled
*
* @param cancelled {@code true} if the event should be cancelled
* @param cancelled {@code true} if the event should be canceled
*/
void setCancelled(boolean cancelled);
@@ -56,11 +56,11 @@ public interface EventDispatcher {
}
/**
* Fire an event on this thread, and return whether the event was cancelled
* Fire an event on this thread, and return whether the event was canceled
*
* @param event The event to fire
* @param <T> The type of event to fire
* @return Whether the event was cancelled
* @return Whether the event was canceled
*/
<T extends Event> boolean fireIsCancelled(@NotNull T event);
@@ -74,7 +74,7 @@ public class RequestsManager {
/**
* Remove {@link TeleportRequest}(s) sent by a requester, by name, from a recipient's queue
*
* @param requesterName username of the sender of the request(s) to delete
* @param requesterName the sender's username, whose requests should be removed
* @param recipient the {@link User} recipient of the request
*/
public void removeTeleportRequest(@NotNull String requesterName, @NotNull User recipient) {
@@ -63,7 +63,7 @@ public abstract class Broker {
.toTeleport()
.execute();
} catch (TeleportationException e) {
e.displayMessage(plugin.getConsole(), plugin, new String[]{});
e.displayMessage(plugin.getConsole(), plugin);
}
});
case TELEPORT_TO_NETWORKED_POSITION -> Message.builder()
@@ -163,7 +163,7 @@ public class TeleportRequest {
*/
ACCEPTED,
/**
* The teleport request has been declined by the recipient
* The recipient has declined the teleport request
*/
DECLINED,
/**
@@ -27,7 +27,7 @@ import java.util.function.Supplier;
public interface TaskRunner {
int runAsync(@NotNull Runnable runnable);
void runAsync(@NotNull Runnable runnable);
<T> CompletableFuture<T> supplyAsync(@NotNull Supplier<T> supplier);