mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-19 15:09:19 +00:00
docs(PlayerEvent): improve Javadocs
This commit is contained in:
@@ -5,20 +5,22 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents an event related to a {@link org.bukkit.entity.Player}.
|
||||||
|
*/
|
||||||
public abstract class PlayerEvent extends Event {
|
public abstract class PlayerEvent extends Event {
|
||||||
|
protected final UUID player;
|
||||||
|
|
||||||
protected UUID player;
|
public PlayerEvent(@NotNull UUID uuid) {
|
||||||
|
|
||||||
public PlayerEvent(@NotNull final UUID uuid) {
|
|
||||||
this.player = uuid;
|
this.player = uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the UUID of the player involved in this event
|
* Returns the {@link UUID} of the player involved in this event.
|
||||||
* @return User who is involved in this event
|
*
|
||||||
|
* @return the UUID of the player who is involved in this event
|
||||||
*/
|
*/
|
||||||
@NotNull
|
public final @NotNull UUID getUniqueId() {
|
||||||
public final UUID getUniqueId() {
|
|
||||||
return player;
|
return player;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user