Skip to content

HUD System

Package: com.hypixel.hytale.server.core.entity.entities.player.hud

The HUD system manages on-screen displays that persist while playing. Every player has a HudManager that controls which components are visible.

SystemDescriptionDocs
NotificationsToast popups with styles, icons, itemsNotifications
Event TitlesFull-screen title/subtitle with fadesEvent Titles
Kill FeedPvP/PvE death announcementsKill Feed
Custom OverlaysServer-built persistent HUDCustom HUD
ComponentIDDescription
Hotbar0Item hotbar
StatusIcons1Status effect icons
Reticle2Crosshair/reticle
Chat3Chat window
Requests4Pending requests
Notifications5Toast notifications
KillFeed6Kill/death feed
InputBindings7Key binding hints
PlayerList8Tab player list
EventTitle9Large event titles
Compass10Direction compass
ObjectivePanel11Objective tracker
PortalPanel12Portal status
BuilderToolsLegend13Builder tools help
Speedometer14Speed display
UtilitySlotSelector15Utility slot picker
BlockVariantSelector16Block variant picker
BuilderToolsMaterialSlotSelector17Material slot picker
Stamina18Stamina display
AmmoIndicator19Ammunition counter
Health20Health display
Mana21Mana display
Oxygen22Oxygen/breath display
Sleep23Sleep overlay

See Player API for how to obtain a PlayerRef.

Player player = store.getComponent(ref, Player.getComponentType());
PlayerRef playerRef = store.getComponent(ref, PlayerRef.getComponentType());
HudManager hud = player.getHudManager();
// hide compass
hud.hideHudComponents(playerRef, HudComponent.Compass);
// show multiple components
hud.showHudComponents(playerRef,
HudComponent.Health,
HudComponent.Hotbar
);
// replace all visible components (hides everything else)
hud.setVisibleHudComponents(playerRef,
HudComponent.Hotbar,
HudComponent.Health
);
// get current visible set
Set<HudComponent> visible = hud.getVisibleHudComponents();
// reset visible components to defaults and remove custom HUD
hud.resetHud(playerRef);
// reset all client UI state (sends ResetUserInterfaceState packet)
hud.resetUserInterface(playerRef);
FeatureHUDPages
Persists while playingYesNo
Blocks gameplayNoYes
Event handlingNoFull
Multiple activeYesOne at a time

Use HUD for persistent overlays (scores, timers, minimaps). Use custom pages for menus and dialogs that pause interaction.