MineJason 0.2.1-alpha
See the version list below for details.
dotnet add package MineJason --version 0.2.1-alpha
NuGet\Install-Package MineJason -Version 0.2.1-alpha
<PackageReference Include="MineJason" Version="0.2.1-alpha" />
paket add MineJason --version 0.2.1-alpha
#r "nuget: MineJason, 0.2.1-alpha"
// Install MineJason as a Cake Addin #addin nuget:?package=MineJason&version=0.2.1-alpha&prerelease // Install MineJason as a Cake Tool #tool nuget:?package=MineJason&version=0.2.1-alpha&prerelease
MineJason
MineJason is a .NET library that provides serialization compatible models for chat component (Raw JSON text format) in Minecraft: Java Edition.
Usage
Serialize and deserialize
You need to make sure that you use ChatComponent.SerializerOptions
when serializing or deserializing chat components, so that your serialized output conforms to Minecraft: Java Edition format.
To make it easier, we have provided JsonComponentSerializer
class which provides a few static methods similar to JsonSerializer
, but pre-configured to use the specified serializer options:
// Use our custom serializers!
using MineJason.Serialization;
JsonComponentSerializer.Serialize(component);
JsonComponentSerializer.Deserialize(json);
If you prefer to do it yourself then you must use or respect all options defined in ChatComponent.SerializerOptions
!
Creating components
Create
methods in ChatComponent
class allows you to create various types of components.
Issues
Please report issues in the issue tracker.
Thanks
- Thanks JetBrains for providing a licence of their tools for open source development. The ReSharper VS extension is used in the development of this library.
- Thanks you for your interest on this library.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on MineJason:
Package | Downloads |
---|---|
MineJason.Extensions.SharpNbt
Package Description |
|
MineJason.Item
The item module for MineJason dealing with Item Components and more |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.6.0-alpha.2 | 57 | 6/20/2024 |
0.6.0-alpha | 55 | 6/14/2024 |
0.5.1-alpha | 69 | 5/25/2024 |
0.5.0-alpha | 62 | 5/10/2024 |
0.4.0-alpha | 84 | 2/12/2024 |
0.3.0-alpha.preview1 | 88 | 1/18/2024 |
0.2.1-alpha | 95 | 1/7/2024 |
0.2.0-alpha | 76 | 1/2/2024 |
0.1.0-alpha | 77 | 1/1/2024 |