Class SkullBuilder

java.lang.Object
com.guflimc.brick.gui.spigot.item.AbstractItemStackBuilder<SkullBuilder>
com.guflimc.brick.gui.spigot.item.specific.SkullBuilder

public class SkullBuilder extends AbstractItemStackBuilder<SkullBuilder>
  • Method Details

    • create

      public static SkullBuilder create()
    • build

      public org.bukkit.inventory.ItemStack build()
      Overrides:
      build in class AbstractItemStackBuilder<SkullBuilder>
    • withPlayer

      public SkullBuilder withPlayer(org.bukkit.OfflinePlayer owner)
    • withPlayer

      public SkullBuilder withPlayer(org.bukkit.profile.PlayerProfile profile)
    • withPlayer

      public SkullBuilder withPlayer(UUID uuid)
    • withTexture

      public SkullBuilder withTexture(String textureId)
    • withTexture

      public SkullBuilder withTexture(URL textureUrl)
    • withTexture

      public CompletableFuture<SkullBuilder> withTexture(@NotNull @NotNull UUID playerId)
    • skinUrl

      public static CompletableFuture<URL> skinUrl(@NotNull @NotNull UUID playerId)
      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.