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)
-
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)voidselect(int componentId)
-
-
-
Constructor Detail
-
MagicService
@Inject public MagicService(WidgetService widgets, MenuDispatcher dispatcher)
-
-
Method Detail
-
available
public boolean available(int componentId)
-
cast
public void cast(int componentId)
-
select
public void select(int componentId)
-
castOn
public void castOn(int componentId, NpcRef npc)
-
castOn
public void castOn(int componentId, PlayerRef player)
-
castOn
public void castOn(int componentId, ObjectRef object)
-
castOn
public void castOn(int componentId, GroundItemRef item)
-
castOn
public void castOn(int componentId, InventoryItem item)
-
-