Liteskullapi

💜 LiteSkullAPI - Fast and extensive skull library for Bukkit/Spigot/Paper plugins.
Alternatives To Liteskullapi
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Blessing Skin Server624
2 months agoApril 09, 201923mitPHP
Web application brings your custom skins back in offline Minecraft servers.
Mccustomskinloader408
15 days ago6gpl-3.0Java
Customize Skin, Cape and Elytra in Minecraft 1.8-1.19.3
Skinsrestorerx407
15 hours ago136gpl-3.0Java
SkinsRestorer development repository
Skinview3d354842 months ago33August 07, 20228mitTypeScript
Three.js powered Minecraft skin viewer.
Awesome Minecraft291
2 months ago1cc0-1.0
📝 The curated list of awesome things related to Minecraft.
Mcprep216
7 days ago60gpl-3.0Python
Blender python addon to increase workflow for creating minecraft renders and animations
Mcsniperpy208
a year ago44March 20, 2022mitPython
Minecraft name sniper written in python.
Changeskin184
2 days ago56mitJava
Allows your players to change their skin by command
Minecraftstats151
3 months ago36otherPython
A Minecraft player statistics browser for the web - supports 1.13 to 1.19!
Skullcreator108
7 months ago4mitJava
An easy to use library to create player skulls in minecraft
Alternatives To Liteskullapi
Select To Compare


Alternative Project Comparisons
Readme

💜 LiteSkullAPI

Fast and extensive skull library for Bukkit/Spigot/Paper plugins.

Helpful links:

mineCodes Repository (Maven or Gradle) ❤️

<repository>
  <id>minecodes-repository</id>
  <url>https://repository.minecodes.pl/releases</url>
</repository>
maven { url "https://repository.minecodes.pl/releases" }

Dependencies (Maven or Gradle)

Framework Core

<dependency>
    <groupId>dev.rollczi</groupId>
    <artifactId>liteskullapi</artifactId>
    <version>1.2.0</version>
</dependency>
implementation 'dev.rollczi:liteskullapi:1.2.0'

How use LiteSkullAPI?

public final class ExamplePlugin extends JavaPlugin {
    private SkullAPI skullAPI;

    @Override
    public void onEnable() {
        this.skullAPI = LiteSkullFactory.builder()
                .cacheExpireAfterWrite(Duration.ofMinutes(45L))
                .bukkitScheduler(this)
                .build();
    }
}

Accept synchronous with Minecraft Server

Lambda will be run in the server sync task (see .bukkitScheduler() or .scheduler())

// you can use this item when skull will be found (synchronous)
skullAPI.acceptSyncSkull("Rollczi", itemStack -> {
    player.getInventory().addItem(itemStack);
});

skullAPI.acceptSyncSkullData("Rollczi", skullData -> {
    String value = skullData.getValue();
    String signature = skullData.getSignature();
});

Accept asynchronous

// you can use this item when skull will be found (asynchronous)
skullAPI.acceptAsyncSkull("Rollczi", itemStack -> {
    itemStack
    // some code
});
skullAPI.acceptAsyncSkullData("Rollczi", skullData -> {
    String value = skullData.getValue(); // texture value
    String signature = skullData.getSignature(); // texture signature
});

CompletableFuture

// you can get completable future with skull item
CompletableFuture<ItemStack> completableFuture = skullAPI.getSkull("Rollczi");
completableFuture.thenAcceptAsync(itemStack -> {
    itemStack
    // some code
});

// you can get completable future with skull data
CompletableFuture<SkullData> completableFuture = skullAPI.getSkullData("Rollczi");
completableFuture.thenAcceptAsync(skullData -> {
    String value = skullData.getValue(); // texture value
    String signature = skullData.getSignature(); // texture signature
});

Await for skull (⚠️ Blocking)

ItemStack itemStack = skullAPI.awaitForSkull("Rollczi", 10, TimeUnit.SECONDS);
SkullData skullData = skullAPI.awaitForSkullData("Rollczi", 10, TimeUnit.SECONDS);
Popular Minecraft Projects
Popular Skin Projects
Popular Games Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Minecraft
Skin
Spigot
Bukkit