mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-19 13:51:22 +01:00
fix javadoc (#2410)
This commit is contained in:
parent
21b21005a2
commit
884a093c3a
@ -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);
|
|
||||||
}
|
|
@ -14,7 +14,7 @@ import java.util.function.Consumer;
|
|||||||
public interface AcquirableSource<T> {
|
public interface AcquirableSource<T> {
|
||||||
/**
|
/**
|
||||||
* Obtains an {@link Acquirable}. To safely perform operations on this object, the user must call
|
* 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.
|
* a subsequent unlock) on the Acquirable instance.
|
||||||
*
|
*
|
||||||
* @return an Acquirable which can be used to synchronize access to this object
|
* @return an Acquirable which can be used to synchronize access to this object
|
||||||
|
Loading…
Reference in New Issue
Block a user