MineJason 0.3.0-alpha.preview1

This is a prerelease version of MineJason.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package MineJason --version 0.3.0-alpha.preview1                
NuGet\Install-Package MineJason -Version 0.3.0-alpha.preview1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MineJason" Version="0.3.0-alpha.preview1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MineJason --version 0.3.0-alpha.preview1                
#r "nuget: MineJason, 0.3.0-alpha.preview1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MineJason as a Cake Addin
#addin nuget:?package=MineJason&version=0.3.0-alpha.preview1&prerelease

// Install MineJason as a Cake Tool
#tool nuget:?package=MineJason&version=0.3.0-alpha.preview1&prerelease                

MineJason

Nuget GitLab Last Commit Discord QQ

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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 74 1/2/2024
0.1.0-alpha 77 1/1/2024