Skip to content

RoleUtils

Package: com.hypixel.hytale.server.npc.role

public class RoleUtils

Static utility methods for managing NPC inventory items during role initialization and runtime. Delegates to InventoryHelper for the actual item resolution and slot assignment. Logs warnings via NPCPlugin when item or armor resolution fails.

ModifierReturn TypeSignature
public staticvoidsetHotbarItems(@Nonnull NPCEntity npcComponent, @Nonnull String[] hotbarItems)
public staticvoidsetOffHandItems(@Nonnull NPCEntity npcComponent, @Nonnull String[] offHandItems)
public staticvoidsetItemInHand(@Nonnull NPCEntity npcComponent, @Nullable String itemInHand)
public staticvoidsetArmor(@Nonnull NPCEntity npcComponent, @Nullable String armor)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.