Doc changes
This commit is contained in:
parent
f9426395a0
commit
aaee6c8ce9
@ -1,13 +1,12 @@
|
|||||||
package me.braydon.mc.repository;
|
package me.braydon.mc.repository;
|
||||||
|
|
||||||
import me.braydon.mc.model.Player;
|
|
||||||
import me.braydon.mc.model.cache.CachedPlayer;
|
import me.braydon.mc.model.cache.CachedPlayer;
|
||||||
import org.springframework.data.repository.CrudRepository;
|
import org.springframework.data.repository.CrudRepository;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A cache repository for {@link Player}'s.
|
* A cache repository for {@link CachedPlayer}'s.
|
||||||
*
|
*
|
||||||
* @author Braydon
|
* @author Braydon
|
||||||
*/
|
*/
|
||||||
|
@ -45,6 +45,12 @@ public final class MojangService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a player by their username or UUID.
|
* Get a player by their username or UUID.
|
||||||
|
* <p>
|
||||||
|
* If the player is present within the cache, that will
|
||||||
|
* be returned. If the player is not cached, a request
|
||||||
|
* will be made to retrieve the player from Mojang, cache it
|
||||||
|
* and then return the response.
|
||||||
|
* </p>
|
||||||
*
|
*
|
||||||
* @param query the query to search for the player by
|
* @param query the query to search for the player by
|
||||||
* @return the player
|
* @return the player
|
||||||
|
Loading…
Reference in New Issue
Block a user