Skip to content

Serialization - #46

Open
mudkipdev wants to merge 13 commits into
Minestom:masterfrom
mudkipdev:serialization
Open

Serialization#46
mudkipdev wants to merge 13 commits into
Minestom:masterfrom
mudkipdev:serialization

Conversation

@mudkipdev

@mudkipdev mudkipdev commented Mar 17, 2026

Copy link
Copy Markdown
Collaborator

Closes #42

Comment thread docs/feature/serialization/codecs.md Outdated
Comment thread docs/feature/serialization/codecs.md Outdated

@kermandev kermandev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would drop the NetworkBuffer docs for now and just focus on #42, we can revisit in the future.

I would also focus more on explanation on why I need to do it this way instead of pure examples, but examples are also good.

Comment thread docs/feature/serialization/codecs.md
Comment thread docs/feature/serialization/codecs.md
Comment thread docs/feature/serialization/codecs.md Outdated
Comment thread docs/feature/serialization/codecs.md
Comment thread docs/feature/serialization/codecs.md Outdated
Comment thread docs/feature/serialization/codecs.md Outdated
Comment thread docs/feature/serialization/codecs.md
Comment thread docs/feature/serialization/codecs.md
Comment thread docs/feature/serialization/codecs.md Outdated
Comment thread docs/feature/serialization/codecs.md Outdated
Comment thread docs/feature/serialization/codecs.md Outdated
```

:::tip
You can create your own transcoder, for example, one for reading YAML configuration files. See this [SnakeYAML transcoder example](https://gist.github.com/mudkipdev/47ac0f90555d4e810e13ce82c7161211) for a complete implementation.

@kermandev kermandev Aug 1, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont know if we should link to a gist, wonder if a separate section or something is nicer, also the example may be out of date with getNumber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation on Codecs

2 participants