Package dev.boze.api.client.cape
Class CapeSource
java.lang.Object
dev.boze.api.client.cape.CapeSource
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
callback
(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)boolean
abstract URL
getUrl
(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
-