Class SkullBuilder
java.lang.Object
com.guflimc.brick.gui.spigot.item.AbstractItemStackBuilder<SkullBuilder>
com.guflimc.brick.gui.spigot.item.specific.SkullBuilder
-
Field Summary
Fields inherited from class com.guflimc.brick.gui.spigot.item.AbstractItemStackBuilder
itemStack
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
build()
static SkullBuilder
create()
static CompletableFuture<URL>
Retrieves the skin url of the player with the given uuid.withPlayer
(UUID uuid) withPlayer
(org.bukkit.OfflinePlayer owner) withPlayer
(org.bukkit.profile.PlayerProfile profile) withTexture
(@NotNull UUID playerId) withTexture
(String textureId) withTexture
(URL textureUrl) Methods inherited from class com.guflimc.brick.gui.spigot.item.AbstractItemStackBuilder
apply, apply, apply, applyMeta, applyMeta, clearEnchantments, clearLore, hideAttributes, showAttributes, transform, withAmount, withEnchantment, withEnchantment, withItemFlag, withLore, withLore, withLore, withName, withName, withoutItemFlag, withToolDamage, withType
-
Method Details
-
create
-
build
public org.bukkit.inventory.ItemStack build()- Overrides:
build
in classAbstractItemStackBuilder<SkullBuilder>
-
withPlayer
-
withPlayer
-
withPlayer
-
withTexture
-
withTexture
-
withTexture
-
skinUrl
Retrieves the skin url of the player with the given uuid. This only works for premium players.- Parameters:
playerId
- The uuid of the player- Returns:
- The skin url of the player or null if the player does not exist or does not have a skin.
-