I found that the effect of TextAnchor does not match the expected behavior when using it. For example, TextAnchor.CENTER_CENTER is the same as the default position (like the actionbar), TextAnchor.TOP_CENTER appears at the midpoint between the top border of the screen and the crosshair, TextAnchor.BOTTOM_CENTER goes beyond the screen range. All TextAnchor enum values need to be corrected using y(-1f) to appear at the expected positions, as if the located screen range is offset downward (y+) by a certain distance.
I don't know if this is normal
Minecraft version 1.20.1
Mod loader Fabric
Fabric API 0.92.5
Fabric loader 0.16.14
Immersive Message API version 1.0.18
I found that the effect of TextAnchor does not match the expected behavior when using it. For example, TextAnchor.CENTER_CENTER is the same as the default position (like the actionbar), TextAnchor.TOP_CENTER appears at the midpoint between the top border of the screen and the crosshair, TextAnchor.BOTTOM_CENTER goes beyond the screen range. All TextAnchor enum values need to be corrected using y(-1f) to appear at the expected positions, as if the located screen range is offset downward (y+) by a certain distance.
I don't know if this is normal
Minecraft version 1.20.1
Mod loader Fabric
Fabric API 0.92.5
Fabric loader 0.16.14
Immersive Message API version 1.0.18