A library for communication with a Minecraft client/server.
Find a file
David Choo f7f84e73cf
Rename entity types to match Java and move away from MagicValues (#669)
* Rename entity types to match Java and move away from MagicValues

Removed WeatherEntityType since it was unused since 1.16

Renamed:
MINECART_CHEST -> CHEST_MINECART
MINECART_COMMAND_BLOCK -> COMMAND_BLOCK_MINECART
MINECART_FURNACE -> FURNACE_MINECART
MINECART_HOPPER -> HOPPER_MINECART
MINECART_SPAWNER -> SPAWNER_MINECART
MINECART_TNT -> TNT_MINECART
PRIMED_TNT -> TNT
THROWN_EGG -> EGG
THROWN_ENDERPEARL -> ENDER_PEARL
THROWN_EXP_BOTTLE -> EXPERIENCE_BOTTLE
THROWN_POTION -> POTION

* Use readEnum in EntityType

* Fix HORIZONTAL_VALUES in Direction

This fixes painting direction in ClientboundAddPaintingPacket
2021-11-26 22:49:51 -05:00
.github/workflows Refactor to use Mojmap packet names (#662) 2021-11-12 12:59:12 -05:00
example/com/github/steveice10/mc/protocol/test Update for PacketLib changes 2021-11-24 23:33:39 -05:00
src Rename entity types to match Java and move away from MagicValues (#669) 2021-11-26 22:49:51 -05:00
.gitignore General cleanup, fixes, and re-versioning. 2015-07-20 11:13:18 -07:00
Jenkinsfile Update to new packetlib changes 2021-11-13 13:52:39 -06:00
LICENSE.txt Update license year. 2021-05-13 00:28:31 -07:00
pom.xml Initial update to 1.18 protocol 2021-11-13 23:48:38 -05:00
README.md Refactor to use Mojmap packet names (#662) 2021-11-12 12:59:12 -05: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.

Support and development

Please join us at https://discord.gg/geysermc under #mcprotocollib for discussion and support for this project.

License

MCProtocolLib is licensed under the MIT license.