A library for communication with a Minecraft client/server.
Find a file
Steven Smith 48860a8084
Merge pull request #620 from Noxcrew/feature/with
Add @With annotation to packet classes
2021-03-24 01:42:08 -07:00
.github/workflows Bump action version 2020-06-25 01:33:53 +01:00
example/com/github/steveice10/mc/protocol/test Replace Message API with Adventure component parsing. 2020-11-21 13:42:36 -08:00
src Add @With annotation to packet classes 2021-03-24 03:00:46 +00:00
.gitignore General cleanup, fixes, and re-versioning. 2015-07-20 11:13:18 -07:00
LICENSE.txt Update license year. 2019-08-28 20:48:44 -07:00
pom.xml Add @With annotation to packet classes 2021-03-24 03:00:46 +00:00
README.md Add information on jitpack to readme file. 2020-05-31 15:30:43 -07:00

MCProtocolLib

MCProtocolLib is a simple library for communicating with a Minecraft client/server. It aims to allow people to make custom bots, clients, or servers for Minecraft easily.

Example Code

See example/com/github/steveice10/mc/protocol/test/MinecraftProtocolTest.java

Adding as a Dependency

The recommended way of fetching MCProtocolLib is through jitpack.io. See here for more details on how to include MCProtocolLib in your project.

Maven:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.Steveice10</groupId>
    <artifactId>MCProtocolLib</artifactId>
    <version>(version here)</version>
</dependency>

Gradle:

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'com.github.Steveice10:MCProtocolLib:(version here)'
}

Building the Source

MCProtocolLib uses Maven to manage dependencies. Simply run 'mvn clean install' in the source's directory.

License

MCProtocolLib is licensed under the MIT license.