Package dev.boze.api.utility.cape
Class CapeSource
java.lang.Object
dev.boze.api.utility.cape.CapeSource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcallback(com.mojang.authlib.GameProfile profile, CapeLoadResult result, @Nullable net.minecraft.util.Identifier identifier) Gets called once a profile's cape gets loaded (if URL not null)booleanabstract URLgetUrl(com.mojang.authlib.GameProfile profile) Returns url (to a png) for a given profile
-
Field Details
-
name
-
-
Constructor Details
-
CapeSource
-
-
Method Details
-
getUrl
Returns url (to a png) for a given profile- Parameters:
profile- Profile to get cape url for- Returns:
- the url of the cape, or null if player has no cape
-
callback
public abstract void callback(com.mojang.authlib.GameProfile profile, CapeLoadResult result, @Nullable @Nullable net.minecraft.util.Identifier identifier) Gets called once a profile's cape gets loaded (if URL not null)- Parameters:
profile- Profile which got loadedresult- Cape load resultidentifier- Identifier of the cape (null if not loaded successfully)
-
equals
-