Package net.openosrs.api.service.magic
Class MagicService
- java.lang.Object
-
- net.openosrs.api.service.magic.MagicService
-
@Singleton public class MagicService extends java.lang.ObjectSpell-widget selection and menu-first target dispatch.
-
-
Constructor Summary
Constructors Constructor Description MagicService(WidgetService widgets, MenuDispatcher dispatcher)MagicService(net.runelite.api.Client client, WidgetService widgets, MenuDispatcher dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanavailable(int componentId)voidcast(int componentId)voidcastOn(int componentId, GroundItemRef item)voidcastOn(int componentId, InventoryItem item)voidcastOn(int componentId, NpcRef npc)voidcastOn(int componentId, ObjectRef object)voidcastOn(int componentId, PlayerRef player)SubmissionResultcastOnAsync(int componentId, GroundItemRef item)SubmissionResultcastOnAsync(int componentId, InventoryItem item)SubmissionResultcastOnAsync(int componentId, NpcRef npc)SubmissionResultcastOnAsync(int componentId, ObjectRef object)SubmissionResultcastOnAsync(int componentId, PlayerRef player)voidselect(int componentId)SubmissionResultselectAsync(int componentId)
-
-
-
Constructor Detail
-
MagicService
public MagicService(WidgetService widgets, MenuDispatcher dispatcher)
-
MagicService
@Inject public MagicService(net.runelite.api.Client client, WidgetService widgets, MenuDispatcher dispatcher)
-
-
Method Detail
-
available
public boolean available(int componentId)
-
cast
public void cast(int componentId)
-
select
public void select(int componentId)
-
selectAsync
public SubmissionResult selectAsync(int componentId)
-
castOn
public void castOn(int componentId, NpcRef npc)
-
castOnAsync
public SubmissionResult castOnAsync(int componentId, NpcRef npc)
-
castOn
public void castOn(int componentId, PlayerRef player)
-
castOnAsync
public SubmissionResult castOnAsync(int componentId, PlayerRef player)
-
castOn
public void castOn(int componentId, ObjectRef object)
-
castOnAsync
public SubmissionResult castOnAsync(int componentId, ObjectRef object)
-
castOn
public void castOn(int componentId, GroundItemRef item)
-
castOnAsync
public SubmissionResult castOnAsync(int componentId, GroundItemRef item)
-
castOn
public void castOn(int componentId, InventoryItem item)
-
castOnAsync
public SubmissionResult castOnAsync(int componentId, InventoryItem item)
-
-