Skip to content

Commit

Permalink
Add rendering argb changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthegreat1 committed Apr 28, 2024
1 parent 38328bb commit b8bf4e3
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit b8bf4e3

Please sign in to comment.