fix javadoc (#2410)

This commit is contained in:
xZeGoe 2024-09-21 15:30:08 +03:00 committed by Matt Worzala
parent 21b21005a2
commit 884a093c3a
2 changed files with 1 additions and 28 deletions

View File

@ -1,27 +0,0 @@
package net.minestom.server.network;
import net.minestom.server.network.player.PlayerConnection;
import org.jetbrains.annotations.NotNull;
import java.util.UUID;
/**
* Used when you want to provide your own {@link UUID} object for players instead of using the default one.
* <p>
* Sets with {@link ConnectionManager#setUuidProvider(UuidProvider)}.
*/
@FunctionalInterface
public interface UuidProvider {
/**
* Called when a new {@link UUID} is requested.
* <p>
* The {@link UUID} does not need to be persistent between restart, but being sure that all players have a different
* one is good practice. Otherwise, undefined behavior can happen.
*
* @param playerConnection the connection who requires a new unique id
* @param username the username given by the connection
* @return the new {@link UUID} for the player
*/
@NotNull UUID provide(@NotNull PlayerConnection playerConnection, @NotNull String username);
}

View File

@ -14,7 +14,7 @@ import java.util.function.Consumer;
public interface AcquirableSource<T> {
/**
* Obtains an {@link Acquirable}. To safely perform operations on this object, the user must call
* {@link Acquirable#sync(Consumer)}, {@link Acquirable#async(Consumer)}, or {@link Acquirable#lock()} (followed by
* {@link Acquirable#sync(Consumer)} or {@link Acquirable#lock()} (followed by
* a subsequent unlock) on the Acquirable instance.
*
* @return an Acquirable which can be used to synchronize access to this object