A C# implementation of the Minecraft: Bedrock Edition network protocol.
bedrock-protocol is an C# implementation of the Minecraft: Bedrock Edition network protocol. It is built on top of raknet-cs for robust RakNet networking.
Clone the repository and build the project:
git clone https://github.com/BedrockSharp/bedrock-protocol.git
cd bedrock-protocol
dotnet buildUse the attribute-based system to register your packets effortlessly:
public class ExamplePacket : Packet
{
public override uint PacketId => (uint)PacketIds.ExamplePacket;
public string Message { get; set; } = string.Empty;
public override void Encode(BinaryStream stream)
{
stream.WriteString(Message);
}
public override void Decode(BinaryStream stream)
{
Message = stream.ReadString();
}
}Contributions are what make the open-source community such an amazing place!
- Fork the project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Please see CONTRIBUTING.md for details.
Distributed under the MIT License. See LICENSE for more information.
Maintained with ❤️ by the BedrockSharp team.