RoleUtils
Package: com.hypixel.hytale.server.npc.role
public class RoleUtilsStatic 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.
Static Methods
Section titled “Static Methods”| Modifier | Return Type | Signature |
|---|---|---|
public static | void | setHotbarItems(@Nonnull NPCEntity npcComponent, @Nonnull String[] hotbarItems) |
public static | void | setOffHandItems(@Nonnull NPCEntity npcComponent, @Nonnull String[] offHandItems) |
public static | void | setItemInHand(@Nonnull NPCEntity npcComponent, @Nullable String itemInHand) |
public static | void | setArmor(@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.