Interface StatusBarHeightProvider
- All Superinterfaces:
ToIntFunction<PlayerEntity>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Define the vertical space occupied by HUD elements, known as status bars, which are positioned on the left and right
sides above the player's hotbar.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault intapplyAsInt(PlayerEntity player) intgetStatusBarHeight(PlayerEntity player)
-
Method Details
-
getStatusBarHeight
- Parameters:
player- thePlayerEntityfrominvalid reference
InGameHud#getCameraPlayer()- Returns:
- the vertical space occupied by the status bar
-
applyAsInt
- Specified by:
applyAsIntin interfaceToIntFunction<PlayerEntity>
-