BedrockProtocol 1.0.4
dotnet add package BedrockProtocol --version 1.0.4
NuGet\Install-Package BedrockProtocol -Version 1.0.4
<PackageReference Include="BedrockProtocol" Version="1.0.4" />
<PackageVersion Include="BedrockProtocol" Version="1.0.4" />
<PackageReference Include="BedrockProtocol" />
paket add BedrockProtocol --version 1.0.4
#r "nuget: BedrockProtocol, 1.0.4"
#:package BedrockProtocol@1.0.4
#addin nuget:?package=BedrockProtocol&version=1.0.4
#tool nuget:?package=BedrockProtocol&version=1.0.4
<p align="center"> <h1 align="center">bedrock-protocol</h1> <p align="center"><i>A C# implementation of the Minecraft: Bedrock Edition network protocol.</i></p> </p>
<p align="center"> <img src="https://img.shields.io/badge/.NET-9.0-512bd4?style=for-the-badge&logo=.net" alt=".NET 9.0"> <img src="https://img.shields.io/badge/License-MIT-green?style=for-the-badge" alt="License MIT"> <img src="https://img.shields.io/github/actions/workflow/status/BedrockSharp/bedrock-protocol/build.yml?style=for-the-badge" alt="Build Status"> <img src="https://img.shields.io/badge/PRs-welcome-cyan?style=for-the-badge" alt="PRs Welcome"> </p>
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.
🛠️ Getting Started
Installation
Clone the repository and build the project:
git clone https://github.com/BedrockSharp/bedrock-protocol.git
cd bedrock-protocol
dotnet build
📦 Defining Custom Packets
Use 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();
}
}
🤝 Contributing
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.
📄 License
Distributed under the MIT License. See LICENSE for more information.
<p align="center"> Maintained with ❤️ by the BedrockSharp team. </p>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- BedrockSharp.Nbt (>= 1.0.1)
- RaknetCS (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BedrockProtocol:
| Package | Downloads |
|---|---|
|
QuantumMC
Highly customized, lightweight and super-fast Minecraft: Bedrock Edition server software written in modern C#. |
GitHub repositories
This package is not used by any popular GitHub repositories.