Class NPCCommandUtils

java.lang.Object
com.hypixel.hytale.server.npc.commands.NPCCommandUtils

public class NPCCommandUtils extends Object
A utility class that contains methods for NPC command handling.
  • Constructor Details

    • NPCCommandUtils

      public NPCCommandUtils()
  • Method Details

    • getTargetNpc

      @Nullable public static it.unimi.dsi.fastutil.Pair<Ref<EntityStore>, NPCEntity> getTargetNpc(@Nonnull CommandContext context, @Nonnull EntityWrappedArg arg, @Nonnull Store<EntityStore> store)
      Gets the NPC entity based on the command context.
      Parameters:
      context - The command context.
      arg - The entity argument.
      store - The entity store.
      Returns:
      The NPC entity, or null if not found.