Enum in @minecraft/server
The parts of the HUD.
import { HudElement } from '@minecraft/server';Example
Section titled “Example”import { HudElement } from '@minecraft/server';
const value: HudElement = HudElement.PaperDoll;console.log(value); // 0import { HudElement } from '@minecraft/server';
const value = HudElement.PaperDoll;console.log(value); // 0Values
Section titled “Values”| Name | Value | Description |
|---|---|---|
PaperDoll |
0 |
|
Armor |
1 |
|
ToolTips |
2 |
|
TouchControls |
3 |
|
Crosshair |
4 |
|
Hotbar |
5 |
|
Health |
6 |
|
ProgressBar |
7 |
|
Hunger |
8 |
|
AirBubbles |
9 |
|
HorseHealth |
10 |
|
StatusEffects |
11 |
|
ItemText |
12 |
Used by
Section titled “Used by”ScreenDisplay.setHudVisibility, ScreenDisplay.hideAllExcept, ScreenDisplay.isForcedHidden