Class MultipleCustomUIHud
java.lang.Object
com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud
io.hymods.lib.hud.MultipleCustomUIHud
public class MultipleCustomUIHud
extends com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud
A custom HUD implementation that can contain and render multiple HUDs simultaneously.
Since Hytale does not natively support showing multiple custom HUDs at once,
this class wraps multiple CustomUIHud instances and renders them all by using
reflection to call their protected build() methods.
-
Constructor Summary
ConstructorsConstructorDescriptionMultipleCustomUIHud(com.hypixel.hytale.server.core.universe.PlayerRef playerRef, HashMap<String, com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud> customHuds) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuild(com.hypixel.hytale.server.core.ui.builder.UICommandBuilder uiCommandBuilder) Methods inherited from class com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud
getPlayerRef, show, update
-
Constructor Details
-
MultipleCustomUIHud
-
-
Method Details
-
build
protected void build(@NonNullDecl com.hypixel.hytale.server.core.ui.builder.UICommandBuilder uiCommandBuilder) - Specified by:
buildin classcom.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud
-
getCustomHuds
-