Skip to content

Update ItemStack#toContainer to be light wrapper over vanilla data#4292

Merged
aromaa merged 2 commits intoapi-12from
feature/native-item-stack-raw-data
Apr 22, 2026
Merged

Update ItemStack#toContainer to be light wrapper over vanilla data#4292
aromaa merged 2 commits intoapi-12from
feature/native-item-stack-raw-data

Conversation

@aromaa
Copy link
Copy Markdown
Member

@aromaa aromaa commented Apr 21, 2026

We now emit the DFU fixer version as DataVersion.

The serialized ItemStack is now stored as is under Data.

This means we can now pass the DataVersion and Data directly to the DFU and not worry about the original data layout.

We then can just inspect the outputted version against the current format directly or pass it to the vanilla serializer.

This should simplify the churn required for serialization and deserialization.

aromaa added 2 commits April 21, 2026 21:25
We now emit the DFU fixer version as DataVersion.

The serialized ItemStack is now stored as is under Data.

This means we can now pass the DataVersion and Data directly
to the DFU and not worry about the original data layout.

We then can just inspect the outputted version against the
current format directly or pass it to the vanilla serializer.

This should simplify the churn required for serialization
and deserialization.
@aromaa aromaa merged commit 582aacf into api-12 Apr 22, 2026
11 checks passed
@aromaa aromaa deleted the feature/native-item-stack-raw-data branch April 22, 2026 21:57
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.

1 participant