8000 GitHub - TuxCoding/CraftAPI: Minecraft library for contacting the Mojang API. Experimenting with Unit-Tests
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Minecraft library for contacting the Mojang API. Experimenting with Unit-Tests

License

Notifications You must be signed in to change notification settings

TuxCoding/CraftAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CraftAPIClient

Description

This is Minecraft library for contacting the Mojang API. It features modern features of Java and flexible way of communicating with Mojang. Furthermore, this project is used for experimenting with Unit-Tests.

Features

  • Compatibility with Minecraft 1.8.8+
  • Thread-Safe
  • Usage of modern Java 11 HTTP Client features
  • UUID and skin querying
  • Skin changing
  • Throws exceptions to let the user decide how to handle errors
  • Default in-memory cache
  • Rotating proxies
  • Configurable amount of name -> uuid requests before using proxies

Planned

Features

  • HTTP request interceptor to redirect to this library
    • Then other plugins could re-use our results
  • Cache cracked username requests
  • Wait a customizable interval for sending bulk requests like in Data Loader (although this increases latency)
  • Add support for multiple outgoing IP addresses back
  • Add multiple remote APIs besides Mojang:

Build

Requirements

  • Java 11+
    • Strong usage of the new HTTP client for HTTP/2 support
  • GSON
  • Guava

Contribution

This project is open for suggestions (including breaking changes between major version) and contributions. If you have an idea to make this library, you are welcome to create an issue ticker or pull request. Please provide units for pull requests if possible.

Maven repository

<project>
  <repositories>
    <!-- CodeMc -->
    <repository>
        <id>codemc-repo</id>
        <url>https://repo.codemc.org/repository/maven-public/</url>
    </repository>
  </repositories>
  
  <dependencies>
    <!--Common component for contacting the Mojang API-->
    <dependency>
        <groupId>com.github.games647</groupId>
        <artifactId>craftapi</artifactId>
        <version>VERSION</version>
    </dependency>
  </dependencies>
</project>

Credits

  • Fast-UUID - MIT license
    • Remember to include its license file

Inspired by

About

Minecraft library for contacting the Mojang API. Experimenting with Unit-Tests

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0