Interface SkullItemBuilder


  • public interface SkullItemBuilder
    Represents a skull item builder. This API was added in order for plugins using skulls to make use of the caching Skins plugin is doing in order to prevent bukkit api from sending requests to mojang api for skull owner skin.
    • Method Detail

      • setOwner

        @NotNull
        @NotNull SkullItemBuilder setOwner​(@NotNull
                                           @NotNull MojangResponse owner)
        Sets the owner of the skull
        Parameters:
        owner - data provider response for skin, representing the owner of the skull.
        Returns:
        this instance for chaining
      • setItemName

        @NotNull
        @NotNull SkullItemBuilder setItemName​(@Nullable
                                              @Nullable String name)
        Sets the item's name. Placeholder "%name%" is available for owner name.
        Parameters:
        name - name of the item
        Returns:
        this instance for chaining
      • setItemLore

        @NotNull
        @NotNull SkullItemBuilder setItemLore​(@Nullable
                                              @Nullable List<String> lore)
        Sets the item's lore.
        Parameters:
        lore - lore of the item
        Returns:
        this instance for chaining
      • build

        @NotNull
        @NotNull org.bukkit.inventory.ItemStack build()
        Builds the set data into an ItemStack
        Returns:
        item