8000
Skip to content

thunderstorm010/VACEfron4J

Folders and files

< A0F7 td class="react-directory-row-name-cell-large-screen" colSpan="1">
NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VACEfron4J

A pure Java™ wrapper for VACEfron's API.
The client methods may throw IOException's, probably because of connectivity issues.

Examples

// This will return the image as an Java byte[]
byte[] heavenBytes = VACEfronClient.heaven("https://cdn.discordapp.com/avatars/326260487220363275/fa5a18f0fe7c1b4692fc2275fd8493a9.png?size=4096");
RankcardBuilder builder = new RankcardBuilder();
// Note that this values are for example
Rankcard card = builder
      .setUsername("VACEfron")
      .setAvatar("avatar url")
      .setLevel(5)
      .setRank(5)
      .setCurrentXp(500)
      .setNextLevelXp(1000)
      .setPreviousLevelXp(500)
      // Optional
      .setCustomBackground(BackgroundResolvable.fromColor(Color.GREEN))
      .setXpColor(Color.RED)
      .setBoosting(true)

      .build();
                
byte[] rankcardImage = VACEfronClient.rankcard(card);

Downloads

Download the latest release from the github releases section and then add it to your build.
Dependencies are shaded in the jar, so you don't need to take care of them for now.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

0