public class SkinProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SkinProvider.Cape |
static class |
SkinProvider.CapeUrlType |
static class |
SkinProvider.Skin |
static class |
SkinProvider.SkinAndCape |
static class |
SkinProvider.UnofficalCape |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ALLOW_THIRD_PARTY_CAPES |
static SkinProvider.Cape |
EMPTY_CAPE |
static SkinProvider.Skin |
EMPTY_SKIN |
static byte[] |
STEVE_SKIN |
| Constructor and Description |
|---|
SkinProvider() |
| Modifier and Type | Method and Description |
|---|---|
static SkinProvider.Cape |
getCachedCape(String capeUrl) |
static SkinProvider.Skin |
getCachedSkin(UUID uuid) |
static <T> T |
getOrDefault(CompletableFuture<T> future,
T defaultValue,
int timeoutInSeconds) |
static boolean |
hasCapeCached(String capeUrl) |
static boolean |
hasSkinCached(UUID uuid) |
static CompletableFuture<SkinProvider.Cape> |
requestCape(String capeUrl,
boolean newThread) |
static CompletableFuture<SkinProvider.Skin> |
requestSkin(UUID playerId,
String textureUrl,
boolean newThread) |
static CompletableFuture<SkinProvider.SkinAndCape> |
requestSkinAndCape(UUID playerId,
String skinUrl,
String capeUrl) |
static CompletableFuture<SkinProvider.Cape> |
requestUnofficialCape(SkinProvider.Cape officialCape,
UUID playerId,
String username,
boolean newThread) |
public static final boolean ALLOW_THIRD_PARTY_CAPES
public static final byte[] STEVE_SKIN
public static final SkinProvider.Skin EMPTY_SKIN
public static final SkinProvider.Cape EMPTY_CAPE
public static boolean hasSkinCached(UUID uuid)
public static boolean hasCapeCached(String capeUrl)
public static SkinProvider.Skin getCachedSkin(UUID uuid)
public static SkinProvider.Cape getCachedCape(String capeUrl)
public static CompletableFuture<SkinProvider.SkinAndCape> requestSkinAndCape(UUID playerId, String skinUrl, String capeUrl)
public static CompletableFuture<SkinProvider.Skin> requestSkin(UUID playerId, String textureUrl, boolean newThread)
public static CompletableFuture<SkinProvider.Cape> requestCape(String capeUrl, boolean newThread)
public static CompletableFuture<SkinProvider.Cape> requestUnofficialCape(SkinProvider.Cape officialCape, UUID playerId, String username, boolean newThread)
public static <T> T getOrDefault(CompletableFuture<T> future, T defaultValue, int timeoutInSeconds)
Copyright © 2020 GeyserMC. All rights reserved.