Contents
Class NPCCommandUtils
java.lang.Object
com.hypixel.hytale.server.npc.commands.NPCCommandUtils
A utility class that contains methods for NPC command handling.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic it.unimi.dsi.fastutil.Pair<Ref<EntityStore>, NPCEntity> getTargetNpc(CommandContext context, EntityWrappedArg arg, Store<EntityStore> store) Gets the NPC entity based on the command context.
-
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
nullif not found.
-