{"id":15663005,"url":"https://github.com/rollczi/liteskullapi","last_synced_at":"2025-04-15T22:50:34.539Z","repository":{"id":38039919,"uuid":"468071668","full_name":"Rollczi/LiteSkullAPI","owner":"Rollczi","description":"💜 LiteSkullAPI - Fast and extensive skull library for Bukkit/Spigot/Paper plugins.","archived":false,"fork":false,"pushed_at":"2025-03-14T15:23:45.000Z","size":271,"stargazers_count":20,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T05:45:19.655Z","etag":null,"topics":["bukkit","hacktoberfest","minecraft","minecraft-api","minecraft-library","minecraft-skull","papermc","skin","skull","spigot"],"latest_commit_sha":null,"homepage":"https://docs.rollczi.dev","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rollczi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-09T19:48:57.000Z","updated_at":"2025-03-17T18:38:59.000Z","dependencies_parsed_at":"2024-06-24T23:52:15.955Z","dependency_job_id":"afc0e937-f2a8-43f0-b7cb-5df80a703200","html_url":"https://github.com/Rollczi/LiteSkullAPI","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rollczi%2FLiteSkullAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rollczi%2FLiteSkullAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rollczi%2FLiteSkullAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rollczi%2FLiteSkullAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rollczi","download_url":"https://codeload.github.com/Rollczi/LiteSkullAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167434,"owners_count":21223505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bukkit","hacktoberfest","minecraft","minecraft-api","minecraft-library","minecraft-skull","papermc","skin","skull","spigot"],"created_at":"2024-10-03T13:35:13.651Z","updated_at":"2025-04-15T22:50:34.518Z","avatar_url":"https://github.com/Rollczi.png","language":"Java","readme":"# 💜 LiteSkullAPI\n#### Fast and extensive skull library for Bukkit/Spigot/Paper plugins.\nHelpful links:\n- [Support Discord](https://discord.gg/6cUhkj6uZJ)\n- [GitHub issues](https://github.com/Rollczi/LiteSkullAPI/issues)\n\n### mineCodes Repository (Maven or Gradle)  ❤️\n```xml\n\u003crepository\u003e\n  \u003cid\u003eminecodes-repository\u003c/id\u003e\n  \u003curl\u003ehttps://repository.minecodes.pl/releases\u003c/url\u003e\n\u003c/repository\u003e\n```\n```groovy\nmaven { url \"https://repository.minecodes.pl/releases\" }\n```\n### Dependencies (Maven or Gradle)\nFramework Core\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003edev.rollczi\u003c/groupId\u003e\n    \u003cartifactId\u003eliteskullapi\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n```groovy\nimplementation 'dev.rollczi:liteskullapi:1.3.0'\n```\n### How use LiteSkullAPI?\n```java\npublic final class ExamplePlugin extends JavaPlugin {\n    private SkullAPI skullAPI;\n\n    @Override\n    public void onEnable() {\n        this.skullAPI = LiteSkullFactory.builder()\n                .cacheExpireAfterWrite(Duration.ofMinutes(45L))\n                .bukkitScheduler(this)\n                .build();\n    }\n}\n```\n#### Accept synchronous with Minecraft Server\nLambda will be run in the server sync task (see `.bukkitScheduler()` or `.scheduler()`)\n```java\n// you can use this item when skull will be found (synchronous)\nskullAPI.acceptSyncSkull(\"Rollczi\", itemStack -\u003e {\n    player.getInventory().addItem(itemStack);\n});\n\nskullAPI.acceptSyncSkullData(\"Rollczi\", skullData -\u003e {\n    String value = skullData.getValue();\n    String signature = skullData.getSignature();\n});\n```\n#### Accept asynchronous\n```java\n// you can use this item when skull will be found (asynchronous)\nskullAPI.acceptAsyncSkull(\"Rollczi\", itemStack -\u003e {\n    itemStack\n    // some code\n});\nskullAPI.acceptAsyncSkullData(\"Rollczi\", skullData -\u003e {\n    String value = skullData.getValue(); // texture value\n    String signature = skullData.getSignature(); // texture signature\n});\n```\n#### CompletableFuture\n```java\n// you can get completable future with skull item\nCompletableFuture\u003cItemStack\u003e completableFuture = skullAPI.getSkull(\"Rollczi\");\ncompletableFuture.thenAcceptAsync(itemStack -\u003e {\n    itemStack\n    // some code\n});\n\n// you can get completable future with skull data\nCompletableFuture\u003cSkullData\u003e completableFuture = skullAPI.getSkullData(\"Rollczi\");\ncompletableFuture.thenAcceptAsync(skullData -\u003e {\n    String value = skullData.getValue(); // texture value\n    String signature = skullData.getSignature(); // texture signature\n});\n```\n#### Await for skull (⚠️ Blocking)\n```java\nItemStack itemStack = skullAPI.awaitForSkull(\"Rollczi\", 10, TimeUnit.SECONDS);\nSkullData skullData = skullAPI.awaitForSkullData(\"Rollczi\", 10, TimeUnit.SECONDS);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollczi%2Fliteskullapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frollczi%2Fliteskullapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollczi%2Fliteskullapi/lists"}