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

    Constructors
    Constructor
    Description
    MultipleCustomUIHud(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 Type
    Method
    Description
    protected void
    build(com.hypixel.hytale.server.core.ui.builder.UICommandBuilder uiCommandBuilder)
     
    HashMap<String, com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud>
     

    Methods inherited from class com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud

    getPlayerRef, show, update

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultipleCustomUIHud

      public MultipleCustomUIHud(@NonNullDecl com.hypixel.hytale.server.core.universe.PlayerRef playerRef, HashMap<String, com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud> customHuds)
  • Method Details

    • build

      protected void build(@NonNullDecl com.hypixel.hytale.server.core.ui.builder.UICommandBuilder uiCommandBuilder)
      Specified by:
      build in class com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud
    • getCustomHuds

      public HashMap<String, com.hypixel.hytale.server.core.entity.entities.player.hud.CustomUIHud> getCustomHuds()