mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
docs: Cleanup, grammar fixes, javadoc tweaks
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user