From 869800b842d82c981406402e0d8341644cc21551 Mon Sep 17 00:00:00 2001 From: XAP3Y Date: Fri, 7 Jun 2024 17:59:08 +0200 Subject: [PATCH] Readme --- README.md | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..46a64c9 --- /dev/null +++ b/README.md @@ -0,0 +1,76 @@ +# SkullCreator + +## Fork of [SkullCreator](https://github.com/deanveloper/SkullCreator) with extra stuff + +The only difference is that it is written in Kotlin, and allows you to get
+head from name or UUID online (using MojangAPI) + +## Download + +
+Maven + +First, add JitPack to your repositories + +```xml + + jitpack.io + https://jitpack.io + +``` + +Then add this as dependency + +```xml + + com.github.xap3y + SkullCreator + b3fa7232c18f71b9d5e105aa68087f3b8efcbd50 + compile + +``` + +
+ + +
+Gradle + +#### Soon! + +
+ +## Usage + +> [!NOTE]\ +> Same as the original [SkullCreator](https://github.com/deanveloper/SkullCreator) only except the new stuff below + + +### By Name (Online) + +`SkullCreator.itemFromNameOnline("XAP3Y")` returning `CompletableFuture`
+ +#### Example (Kotlin) +```kotlin +SkullCreator.itemFromNameOnline("XAP3Y").whenComplete { item, _ -> + player.inventory.addItem(item) +} +``` + +### By UUID (Online) + +The argument has to be UUID in string. It doesn't matter if you put the UUID with dashed or not
+`SkullCreator.itemFromUuidOnline("f1c3931e93d341258fdc9b1dc39bc4d6")`
+which also returns `CompletableFuture` + +#### Example (Kotlin) +```kotlin +SkullCreator.itemFromUuidOnline("f1c3931e93d341258fdc9b1dc39bc4d6").whenComplete { item, _ -> + player.inventory.addItem(item) +} +``` + + + + +