Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rendering argb changes #89

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _posts/2024-04-19-1205.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ All `AbstractBlock` public methods to be overridden were made `protected` and no
### Client
In GUI, setting the initial focus of a screen is now done by overriding `setInitialFocus`, rather than calling it in `init`. `MatrixStack` was replaced with the actual matrix in several rendering code.

#### Rendering
Some places that previously take `rgb` was updated to take `argb` instead. The new `DyedColorComponent` takes `argb`. Item color providers also take `argb` instead of `rgb`, so make sure to wrap your color with `ColorHelper.Argb.fullAlpha()` or else your item may appear transparent if it is registered to the translucent render layer. Block color providers also `argb` now, but passing `rgb` still works.

### Other
DataFixerUpper was updated. This includes several breaking changes, such as `MapCodec` being used in places defining extra fields. Use `RecordCodecBuilder#mapCodec` instead of `create` in this case. Another significant change: `optionalFieldOf` is now strict by default. This means that a decoding error in the field value is now treated as an error, instead of being silently skipped. The `lenientOptionalFieldOf` method restores old behavior.

Expand Down
Loading