Object SkullCreator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ItemStack createSkull() Creates a player skull, should work in both legacy and new Bukkit APIs.
      final static ItemStack itemFromName(String name) Creates a player skull item with the skin based on a player's name.
      final static CompletableFuture<ItemStack> itemFromNameOnline(String name) Creates a player skull item with the skin based on a player's name using Mojang API.
      final static ItemStack itemFromUuid(UUID id) Creates a player skull item with the skin based on a player's UUID.
      final static CompletableFuture<ItemStack> itemFromUuidOnline(String id) Creates a player skull item with the skin based on a player's UUID using Mojang API.
      final static ItemStack itemFromUrl(String url) Creates a player skull item with the skin at a Mojang URL.
      final static ItemStack itemFromBase64(String base64) Creates a player skull item with the skin based on a base64 string.
      final static ItemStack itemWithName(ItemStack item, String name) Modifies a skull to use the skin of the player with a given name.
      final static ItemStack itemWithUuid(ItemStack item, UUID id) Modifies a skull to use the skin of the offline player with a given UUID.
      final static ItemStack itemWithUrl(ItemStack item, String url) Modifies a skull to use the skin at the given Mojang URL.
      final static ItemStack itemWithBase64(ItemStack item, String base64) Modifies a skull to use the skin based on the given base64 string.
      final static Unit blockWithName(Block block, String name) Sets the block to a skull with the given name.
      final static Unit blockWithUuid(Block block, UUID id) Sets the block to a skull with the given UUID.
      final static Unit blockWithUrl(Block block, String url) Sets the block to a skull with the skin found at the provided mojang URL.
      final static Unit blockWithBase64(Block block, String base64) Sets the block to a skull with the skin for the base64 string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • createSkull

         final static ItemStack createSkull()

        Creates a player skull, should work in both legacy and new Bukkit APIs.

      • itemFromName

        @Deprecated(message = "names don't make for good identifiers.") final static ItemStack itemFromName(String name)

        Creates a player skull item with the skin based on a player's name.

        Parameters:
        name - The Player's name.
        Returns:

        The head of the Player.

      • itemFromNameOnline

         final static CompletableFuture<ItemStack> itemFromNameOnline(String name)

        Creates a player skull item with the skin based on a player's name using Mojang API.

        Parameters:
        name - The Player's name.
        Returns:

        The head of the Player.

      • itemFromUuid

         final static ItemStack itemFromUuid(UUID id)

        Creates a player skull item with the skin based on a player's UUID.

        Parameters:
        id - The Player's UUID.
        Returns:

        The head of the Player.

      • itemFromUuidOnline

         final static CompletableFuture<ItemStack> itemFromUuidOnline(String id)

        Creates a player skull item with the skin based on a player's UUID using Mojang API.

        Parameters:
        id - The Player's UUID.
        Returns:

        The head of the Player.

      • itemFromUrl

         final static ItemStack itemFromUrl(String url)

        Creates a player skull item with the skin at a Mojang URL.

        Parameters:
        url - The Mojang URL.
        Returns:

        The head of the Player.

      • itemFromBase64

         final static ItemStack itemFromBase64(String base64)

        Creates a player skull item with the skin based on a base64 string.

        Parameters:
        base64 - The Base64 string.
        Returns:

        The head of the Player.

      • itemWithName

        @Deprecated(message = "names don't make for good identifiers.") final static ItemStack itemWithName(ItemStack item, String name)

        Modifies a skull to use the skin of the player with a given name.

        Parameters:
        item - The item to apply the name to.
        name - The Player's name.
        Returns:

        The head of the Player.

      • itemWithUuid

         final static ItemStack itemWithUuid(ItemStack item, UUID id)

        Modifies a skull to use the skin of the offline player with a given UUID.

        Parameters:
        item - The item to apply the name to.
        id - The Player's UUID.
        Returns:

        The head of the Player.

      • itemWithUrl

         final static ItemStack itemWithUrl(ItemStack item, String url)

        Modifies a skull to use the skin at the given Mojang URL.

        Parameters:
        item - The item to apply the skin to.
        url - The URL of the Mojang skin.
        Returns:

        The head associated with the URL.

      • itemWithBase64

         final static ItemStack itemWithBase64(ItemStack item, String base64)

        Modifies a skull to use the skin based on the given base64 string.

        Parameters:
        item - The ItemStack to put the base64 onto.
        base64 - The base64 string containing the texture.
        Returns:

        The head with a custom texture.

      • blockWithName

        @Deprecated(message = "names don't make for good identifiers.") final static Unit blockWithName(Block block, String name)

        Sets the block to a skull with the given name.

        Parameters:
        block - The block to set.
        name - The player to set it to.
      • blockWithUuid

         final static Unit blockWithUuid(Block block, UUID id)

        Sets the block to a skull with the given UUID.

        Parameters:
        block - The block to set.
        id - The player to set it to.
      • blockWithUrl

         final static Unit blockWithUrl(Block block, String url)

        Sets the block to a skull with the skin found at the provided mojang URL.

        Parameters:
        block - The block to set.
        url - The mojang URL to set it to use.
      • blockWithBase64

         final static Unit blockWithBase64(Block block, String base64)

        Sets the block to a skull with the skin for the base64 string.

        Parameters:
        block - The block to set.
        base64 - The base64 to set it to use.